summaryrefslogtreecommitdiff
path: root/XI2.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-06-03 15:56:21 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-06-07 09:23:38 +1000
commit2cd2adb7a454072954704e1a215df49ce9dac410 (patch)
treea56bb1f5e062cc583a0523b3617990ab920a6d77 /XI2.h
parentbef7648827a0696debdd629472a45508a30144b1 (diff)
Provide convenience defines for owner_events.
No functional effect, just to improve readability of code. It's not obvious what "True" or "False" stands for in a function with 11 arguments. Compare XIGrabButton(dpy, deviceid, button, grab_window, cursor, GrabModeAsync, GrabModeSync, True, event_mask, num_modifiers, &modifiers); vs. XIGrabButton(dpy, deviceid, button, grab_window, cursor, GrabModeAsync, GrabModeSync, XIOwnerEvents, event_mask, num_modifiers, &modifiers); Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'XI2.h')
-rw-r--r--XI2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/XI2.h b/XI2.h
index 43338a1..783e22f 100644
--- a/XI2.h
+++ b/XI2.h
@@ -79,6 +79,10 @@
#define XIGrabNotViewable 3
#define XIGrabFrozen 4
+/* Grab owner events values */
+#define XIOwnerEvents True
+#define XINoOwnerEvents False
+
/* Passive grab types */
#define XIGrabtypeButton 0
#define XIGrabtypeKeycode 1