diff options
author | sabetts <sabetts> | 2000-10-20 17:39:03 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2000-10-20 17:39:03 +0000 |
commit | c32146268b261c8b2296427f476c4c1aa9e17bc7 (patch) | |
tree | 7334c8d0e0827b069209e457ccf461f08e25f128 /src/manage.c | |
parent | e4d6a91e68beae9112624c6d1320b8c7c1119917 (diff) | |
download | ratpoison-c32146268b261c8b2296427f476c4c1aa9e17bc7.zip |
added initial support for hiding the rat on key events
Diffstat (limited to 'src/manage.c')
-rw-r--r-- | src/manage.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/manage.c b/src/manage.c index d40fb07..3e72f5f 100644 --- a/src/manage.c +++ b/src/manage.c @@ -42,8 +42,10 @@ extern Atom wm_state; static void grab_prefix_key (Window w) { - XGrabKey(dpy, XKeysymToKeycode (dpy, KEY_PREFIX ), MODIFIER_PREFIX, w, True, + XGrabKey(dpy, AnyKey, AnyModifier, w, True, GrabModeAsync, GrabModeAsync); +/* XGrabKey(dpy, XKeysymToKeycode (dpy, KEY_PREFIX ), MODIFIER_PREFIX, w, True, */ +/* GrabModeAsync, GrabModeAsync); */ } char * @@ -121,7 +123,7 @@ manage (rp_window *win, screen_info *s) PADDING_TOP, s->root_attr.width - PADDING_LEFT - PADDING_RIGHT, s->root_attr.height - PADDING_TOP - PADDING_BOTTOM); - XSelectInput (dpy, win->w, PropertyChangeMask); + XSelectInput (dpy, win->w, PropertyChangeMask | PointerMotionMask); XAddToSaveSet(dpy, win->w); grab_prefix_key (win->w); |