diff -r -c ratpoison-0.0.5/src/events.c ratpoison-0.0.5-a/src/events.c *** ratpoison-0.0.5/src/events.c Tue Oct 31 08:40:16 2000 --- ratpoison-0.0.5-a/src/events.c Tue Jan 9 11:37:54 2001 *************** *** 82,88 **** } update_window_names (s); ! } } void --- 82,92 ---- } update_window_names (s); ! if (is_zero_windows()) ! { ! send_kill (); ! } ! } } void diff -r -c ratpoison-0.0.5/src/list.c ratpoison-0.0.5-a/src/list.c *** ratpoison-0.0.5/src/list.c Tue Oct 17 20:30:43 2000 --- ratpoison-0.0.5-a/src/list.c Tue Jan 9 11:33:47 2001 *************** *** 81,87 **** return NULL; } ! void remove_from_window_list (rp_window *w) { --- 81,93 ---- return NULL; } ! ! int ! is_zero_windows () ! { ! return (rp_window_head->next == (rp_window*) NULL && rp_window_head->prev == (rp_window*) NULL); ! } ! void remove_from_window_list (rp_window *w) { diff -r -c ratpoison-0.0.5/src/list.h ratpoison-0.0.5-a/src/list.h *** ratpoison-0.0.5/src/list.h Tue Oct 17 20:30:43 2000 --- ratpoison-0.0.5-a/src/list.h Tue Jan 9 11:33:34 2001 *************** *** 34,37 **** --- 34,38 ---- void goto_window_name (char *name); rp_window *find_last_accessed_window (); rp_window *find_window_by_number (int n); + int is_zero_windows (); #endif /* _LIST_H */ diff -r -c ratpoison-0.0.5/src/ratpoison.h ratpoison-0.0.5-a/src/ratpoison.h *** ratpoison-0.0.5/src/ratpoison.h Tue Oct 17 20:30:43 2000 --- ratpoison-0.0.5-a/src/ratpoison.h Tue Jan 9 11:05:08 2001 *************** *** 52,56 **** void clean_up (); screen_info *find_screen (Window w); ! #endif /* _RATPOISON_H */ --- 52,56 ---- void clean_up (); screen_info *find_screen (Window w); ! void send_kill (); #endif /* _RATPOISON_H */