From 9784bfc548debcf70cdfd202abec95be539a32fd Mon Sep 17 00:00:00 2001 From: sabetts Date: Thu, 18 Oct 2001 07:51:30 +0000 Subject: (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 --- src/data.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/data.h b/src/data.h index a1f799c..f143230 100644 --- a/src/data.h +++ b/src/data.h @@ -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; */ -- cgit v1.2.3