aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-14 00:00:58 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-14 00:00:58 -0400
commit1cf11a723c1710470ab4a98ae3abcae1686320dd (patch)
tree02ae2fb31cbce842a41acd43ecda52bcb7ce621f
parentc15c91646509939c028d13a2c0454aa4f843a04e (diff)
downloadrunes-1cf11a723c1710470ab4a98ae3abcae1686320dd.tar.gz
runes-1cf11a723c1710470ab4a98ae3abcae1686320dd.zip
also grab enter and leave notify events
this is what was preventing window changing from working when unclutter hides the pointer
-rw-r--r--window-xlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window-xlib.c b/window-xlib.c
index 530a245..4338065 100644
--- a/window-xlib.c
+++ b/window-xlib.c
@@ -119,7 +119,7 @@ void runes_window_backend_loop_init(RunesTerm *t, int argc, char *argv[])
XGetICValues(w->ic, XNFilterEvents, &mask, NULL);
XSelectInput(
w->dpy, w->w,
- mask|KeyPressMask|ButtonPressMask|ButtonReleaseMask|ButtonMotionMask|PointerMotionHintMask|StructureNotifyMask|ExposureMask|FocusChangeMask);
+ mask|KeyPressMask|ButtonPressMask|ButtonReleaseMask|ButtonMotionMask|PointerMotionHintMask|EnterWindowMask|LeaveWindowMask|StructureNotifyMask|ExposureMask|FocusChangeMask);
XSetICFocus(w->ic);
data = malloc(sizeof(RunesXlibLoopData));