diff options
author | sabetts <sabetts> | 2000-10-17 09:30:43 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2000-10-17 09:30:43 +0000 |
commit | 53e1ff2c79b3b9f3bcece9281531ab6afdb844e6 (patch) | |
tree | d6f78af9bb46e9ad40242e3a943bb21886e93264 /src/data.h | |
parent | 17b9be354e5b1f2b5db4d3e044435698a17b2be6 (diff) | |
download | ratpoison-53e1ff2c79b3b9f3bcece9281531ab6afdb844e6.zip |
fixed bug that lost focus of any window when the current window was unmapped.
moved key strokes into a structure in actions.c along with all key stroke functi
ons. added ability to ignore badwindow errors. fixed up unmap_notify function. w
hen waiting for a keystroke after the prefix has been hit, pressing a modifier d
oesn't count as a 'keystroke' and doesn't abort the current key combination bein
g keyed
Diffstat (limited to 'src/data.h')
-rw-r--r-- | src/data.h | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -31,6 +31,7 @@ typedef struct rp_window rp_window; typedef struct screen_info screen_info; +typedef struct rp_action rp_action; struct rp_window { @@ -56,6 +57,14 @@ struct screen_info Colormap def_cmap; }; +struct rp_action +{ + int key; + int state; + void *data; /* misc data to be passed to the function */ + void (*func)(void *); +}; + extern rp_window *rp_window_head, *rp_window_tail; extern rp_window *rp_current_window; extern screen_info *screens; @@ -72,9 +81,10 @@ extern Atom wm_delete; extern Atom wm_take_focus; extern Atom wm_colormaps; -/* Set to 1 to indicate that the WM should exit at it's earliest - convenience. */ -extern int exit_signal; +/* When unmapping or deleting windows, it is sometimes helpful to + ignore a bad window when attempting to clean the window up. This + does just that when set to 1 */ +extern int ignore_badwindow; /* Arguments passed to ratpoison. */ extern char **myargv; |