diff options
author | sabetts <sabetts> | 2001-10-18 07:51:30 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-10-18 07:51:30 +0000 |
commit | 9784bfc548debcf70cdfd202abec95be539a32fd (patch) | |
tree | 94a7fa90189196605500c690b457e05f73b4e5a5 | |
parent | 352f4bae346f5875463fdc5c187a6040fb1309e8 (diff) | |
download | ratpoison-9784bfc548debcf70cdfd202abec95be539a32fd.zip |
(struct rp_window_frame): new field 'last_access'
(RP_CONTROL_MASK): new define. All code depending on the X11
modifier mask equivalent has been changed to use this where
appropriate.
(RP_META_MASK): likewise
(RP_ALT_MASK): likewise
(RP_SUPER_MASK): likewise
(RP_HYPER_MASK): likewise
-rw-r--r-- | src/data.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -40,6 +40,9 @@ struct rp_window_frame int x, y, width, height; rp_window *win; + /* For determining the last frame. */ + int last_access; + rp_window_frame *prev, *next; }; @@ -49,7 +52,7 @@ struct rp_window Window w; int number; int state; - int last_access; + int last_access; int named; /* Window name hints. */ @@ -208,6 +211,15 @@ extern int ignore_badwindow; /* Arguments passed to ratpoison. */ extern char **myargv; +/* These defines should be used to specify the modifier mask for keys + and they are translated into the X11 modifier mask when the time + comes to compare modifier masks. */ +#define RP_CONTROL_MASK 1 +#define RP_META_MASK 2 +#define RP_ALT_MASK 4 +#define RP_SUPER_MASK 8 +#define RP_HYPER_MASK 16 + struct modifier_info { /* unsigned int mode_switch_mask; */ |