summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-05-14 16:56:17 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-05-14 16:56:17 +1000
commit04bf8fe62832a38f56041d860a717f13fd3a7295 (patch)
treecc6da2b78aad1b6dc95fe1722c6fd8d13c329ed9 /include
parent68da471cd7ad3b5d76bfc1207083f892b15dd34a (diff)
Return failed modifiers for passive XI2 grabs.
Diffstat (limited to 'include')
-rw-r--r--include/X11/extensions/XInput2.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h
index ff64127..205ea5f 100644
--- a/include/X11/extensions/XInput2.h
+++ b/include/X11/extensions/XInput2.h
@@ -116,6 +116,12 @@ typedef struct
XIAnyClassInfo **classes;
} XIDeviceInfo;
+typedef struct
+{
+ int modifiers;
+ int status;
+} XIGrabModifiers;
+
/**
* Generic XI2 event. All XI2 events have the same header.
* Note: this event is padded to be the same size as libX11's XEvent.
@@ -405,7 +411,7 @@ extern int XIGrabButton(
int owner_events,
XIEventMask *mask,
int num_modifiers,
- int *modifiers_inout
+ XIGrabModifiers *modifiers_inout
);
extern int XIGrabKeysym(
@@ -418,7 +424,7 @@ extern int XIGrabKeysym(
int owner_events,
XIEventMask *mask,
int num_modifiers,
- int *modifiers_inout
+ XIGrabModifiers *modifiers_inout
);
extern Status XIUngrabButton(
@@ -427,7 +433,7 @@ extern Status XIUngrabButton(
int button,
Window grab_window,
int num_modifiers,
- int *modifiers
+ XIGrabModifiers *modifiers
);
extern Status XIUngrabKeysym(
@@ -436,7 +442,7 @@ extern Status XIUngrabKeysym(
int keysym,
Window grab_window,
int num_modifiers,
- int *modifiers
+ XIGrabModifiers *modifiers
);
extern Atom *XIListProperties(