From 04bf8fe62832a38f56041d860a717f13fd3a7295 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 14 May 2009 16:56:17 +1000 Subject: Return failed modifiers for passive XI2 grabs. --- include/X11/extensions/XInput2.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'include') 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( -- cgit v1.2.3