diff options
author | sabetts <sabetts> | 2001-02-18 22:52:15 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-02-18 22:52:15 +0000 |
commit | d1a198f116338441c6b02426a5c06e45757de1ee (patch) | |
tree | c376cbe4dc0aae91ddb497f069a1956d80b55a7c /src/manage.c | |
parent | 11e164644657679850abbb4dbc4a4878dc99a75d (diff) | |
download | ratpoison-d1a198f116338441c6b02426a5c06e45757de1ee.zip |
* conf.h: restructured comments. Added #define for AUTO_CLOSE.
* manage.c (unmanage): kills ratpoison when there are no more
windows.
Diffstat (limited to 'src/manage.c')
-rw-r--r-- | src/manage.c | 9 |
1 files changed, 9 insertions, 0 deletions
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. */ |