Mercurial > emacs
diff src/xfns.c @ 56781:c54fa35b4ded
* xfns.c (x_window_to_frame, x_any_window_to_frame)
(x_non_menubar_window_to_frame, x_menubar_window_to_frame)
(x_top_window_to_frame): Return 0 if wdesc is None.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Tue, 24 Aug 2004 10:54:39 +0000 |
parents | 0e434700ae47 |
children | fcda7ee97ef5 d58083e7ec81 d8411455de48 |
line wrap: on
line diff
--- a/src/xfns.c Tue Aug 24 03:45:41 2004 +0000 +++ b/src/xfns.c Tue Aug 24 10:54:39 2004 +0000 @@ -281,6 +281,8 @@ Lisp_Object tail, frame; struct frame *f; + if (wdesc == None) return 0; + for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) { frame = XCAR (tail); @@ -330,6 +332,8 @@ struct frame *f, *found; struct x_output *x; + if (wdesc == None) return NULL; + found = NULL; for (tail = Vframe_list; GC_CONSP (tail) && !found; tail = XCDR (tail)) { @@ -384,6 +388,8 @@ struct frame *f; struct x_output *x; + if (wdesc == None) return 0; + for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) { frame = XCAR (tail); @@ -430,6 +436,8 @@ struct frame *f; struct x_output *x; + if (wdesc == None) return 0; + for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) { frame = XCAR (tail); @@ -475,6 +483,8 @@ struct frame *f; struct x_output *x; + if (wdesc == None) return 0; + for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) { frame = XCAR (tail);