diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-06-03 15:56:21 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-06-07 09:23:38 +1000 |
commit | 2cd2adb7a454072954704e1a215df49ce9dac410 (patch) | |
tree | a56bb1f5e062cc583a0523b3617990ab920a6d77 /XI2.h | |
parent | bef7648827a0696debdd629472a45508a30144b1 (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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |