diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 7 | ||||
-rw-r--r-- | src/conf.h | 28 | ||||
-rw-r--r-- | src/manage.c | 9 |
3 files changed, 36 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 4f1b4af..a8a7128 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2001-02-18 shawn <sabetts@diggin.lamenet.tmp> + + * conf.h: restructured comments. Added #define for AUTO_CLOSE. + + * manage.c (unmanage): kills ratpoison when there are no more + windows. + 2001-02-17 Ryan Yeske <rcyeske@cut.hotdog.tmp> * manage.c (current_screen): Rename get_screen() and move to this @@ -28,20 +28,32 @@ #define KEY_PREFIX 't' #define MODIFIER_PREFIX ControlMask -//#define HIDE_MOUSE /* Pressing a key sends the mouse to the bottom right corner */ +/* Pressing a key sends the mouse to the bottom right corner. This + doesn't work ver well yet. */ +//#define HIDE_MOUSE + +/* Quit ratpoison when there are no more managed windows. */ +//#define AUTO_CLOSE #define BAR_FG_COLOR "black" #define BAR_BG_COLOR "white" #define FONT_NAME "9x15bold" -#define BAR_Y_PADDING 0 /* The amount of padding on the top - and bottom of the message bar */ -#define BAR_X_PADDING 0 /* The amount of padding on the left - and right of the message bar */ -#define BAR_LOCATION 3 /* 0=bottom-left 1=top-left 2=bottom-right 3=top-right */ -#define BAR_TIMEOUT 5 /* Number of seconds before the progam bar autohides 0=don't autohide */ +/* The amount of padding on the top and bottom of the message bar. */ +#define BAR_Y_PADDING 0 + +/* The amount of padding on the left and right of the message bar. */ +#define BAR_X_PADDING 0 + +/* 0=bottom-left 1=top-left 2=bottom-right 3=top-right */ +#define BAR_LOCATION 3 + +/* Number of seconds before the progam bar autohides. Setting it to 0 + disable autohide. */ +#define BAR_TIMEOUT 5 -#define PADDING_LEFT 0 /* space not to be taken up around managed windows */ +/* space not to be taken up around managed windows */ +#define PADDING_LEFT 0 #define PADDING_TOP 0 #define PADDING_RIGHT 0 #define PADDING_BOTTOM 0 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. */ |