comparison src/window.c @ 70736:6e5b403b5586

(foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 19 May 2006 09:12:26 +0000
parents d26708f033f8
children 8aeb086972ae ab6ab63755f7
comparison
equal deleted inserted replaced
70735:d0bad3102124 70736:6e5b403b5586
6794 foreach_window (f, fn, user_data) 6794 foreach_window (f, fn, user_data)
6795 struct frame *f; 6795 struct frame *f;
6796 int (* fn) P_ ((struct window *, void *)); 6796 int (* fn) P_ ((struct window *, void *));
6797 void *user_data; 6797 void *user_data;
6798 { 6798 {
6799 foreach_window_1 (XWINDOW (FRAME_ROOT_WINDOW (f)), fn, user_data); 6799 /* Fdelete_frame may set FRAME_ROOT_WINDOW (f) to Qnil. */
6800 if (WINDOWP (FRAME_ROOT_WINDOW (f)))
6801 foreach_window_1 (XWINDOW (FRAME_ROOT_WINDOW (f)), fn, user_data);
6800 } 6802 }
6801 6803
6802 6804
6803 /* Helper function for foreach_window. Call FN for all leaf windows 6805 /* Helper function for foreach_window. Call FN for all leaf windows
6804 reachable from W. FN is called with the first argument being a 6806 reachable from W. FN is called with the first argument being a