From d1a198f116338441c6b02426a5c06e45757de1ee Mon Sep 17 00:00:00 2001 From: sabetts Date: Sun, 18 Feb 2001 22:52:15 +0000 Subject: * conf.h: restructured comments. Added #define for AUTO_CLOSE. * manage.c (unmanage): kills ratpoison when there are no more windows. --- src/manage.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/manage.c') diff --git a/src/manage.c b/src/manage.c index 2c0156e..cda4dde 100644 --- a/src/manage.c +++ b/src/manage.c @@ -204,6 +204,15 @@ unmanage (rp_window *w) { return_window_number (w->number); remove_from_window_list (w); + +#ifdef AUTO_CLOSE + if (!rp_current_window) + { + /* If rp_current_window is NULL then we have run out of managed + windows, So kill ratpoison. */ + send_kill(); + } +#endif } /* When starting up scan existing windows and start managing them. */ -- cgit v1.2.3