From 60d7386a1b98cc7760d55d6df1f90e6259d122fa Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 1 Nov 2012 17:00:19 -0400 Subject: Add support for pointer barrier events Signed-off-by: Jasper St. Pierre Signed-off-by: Peter Hutterer --- include/X11/extensions/XInput2.h | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) (limited to 'include/X11') diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h index 26de695..a746012 100644 --- a/include/X11/extensions/XInput2.h +++ b/include/X11/extensions/XInput2.h @@ -169,6 +169,16 @@ typedef struct int status; } XIGrabModifiers; +typedef XID PointerBarrier; +typedef unsigned int BarrierEventID; + +typedef struct +{ + int deviceid; + PointerBarrier barrier; + BarrierEventID eventid; +} XIBarrierReleasePointerInfo; + /** * Generic XI2 event. All XI2 events have the same header. */ @@ -328,6 +338,28 @@ typedef struct { int flags; } XITouchOwnershipEvent; +typedef struct { + int type; /* GenericEvent */ + unsigned long serial; /* # of last request processed by server */ + Bool send_event; /* true if this came from a SendEvent request */ + Display *display; /* Display the event was read from */ + int extension; /* XI extension offset */ + int evtype; + Time time; + int deviceid; + int sourceid; + Window event; + Window root; + double root_x; + double root_y; + double dx; + double dy; + int dtime; + int flags; + PointerBarrier barrier; + BarrierEventID eventid; +} XIBarrierEvent; + _XFUNCPROTOBEGIN extern Bool XIQueryPointer( @@ -603,6 +635,21 @@ XIGetProperty( unsigned char **data ); +extern void +XIBarrierReleasePointers( + Display* display, + XIBarrierReleasePointerInfo *barriers, + int num_barriers +); + +extern void +XIBarrierReleasePointer( + Display* display, + int deviceid, + PointerBarrier barrier, + BarrierEventID eventid +); + extern void XIFreeDeviceInfo(XIDeviceInfo *info); _XFUNCPROTOEND -- cgit v1.2.3