summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-06-07 19:43:11 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-06-17 11:21:19 +1000
commit01241b4247a7ad0974d48412cc0d88e1a09a3c49 (patch)
tree3fd720e63810c091d4253fc6082153a38b7f30fd /include
parentd230742ea820a21a3f1ed0c58b5e6d8680b2f2aa (diff)
Xi: Add support for sourceid in the device classes.
Diffstat (limited to 'include')
-rw-r--r--include/inputstr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/inputstr.h b/include/inputstr.h
index ffeedb1fa..d7aedac3d 100644
--- a/include/inputstr.h
+++ b/include/inputstr.h
@@ -202,6 +202,7 @@ typedef struct _GrabRec {
} GrabRec;
typedef struct _KeyClassRec {
+ int sourceid;
CARD8 down[DOWN_LENGTH];
CARD8 postdown[DOWN_LENGTH];
int modifierKeyCount[8];
@@ -224,6 +225,7 @@ typedef struct _ValuatorAccelerationRec {
} ValuatorAccelerationRec, *ValuatorAccelerationPtr;
typedef struct _ValuatorClassRec {
+ int sourceid;
int numMotionEvents;
int first_motion;
int last_motion;
@@ -239,6 +241,7 @@ typedef struct _ValuatorClassRec {
} ValuatorClassRec, *ValuatorClassPtr;
typedef struct _ButtonClassRec {
+ int sourceid;
CARD8 numButtons;
CARD8 buttonsDown; /* number of buttons currently down
This counts logical buttons, not
@@ -254,6 +257,7 @@ typedef struct _ButtonClassRec {
} ButtonClassRec, *ButtonClassPtr;
typedef struct _FocusClassRec {
+ int sourceid;
WindowPtr win; /* May be set to a int constant (e.g. PointerRootWin)! */
int revert;
TimeStamp time;
@@ -263,10 +267,12 @@ typedef struct _FocusClassRec {
} FocusClassRec, *FocusClassPtr;
typedef struct _ProximityClassRec {
+ int sourceid;
char pad;
} ProximityClassRec, *ProximityClassPtr;
typedef struct _AbsoluteClassRec {
+ int sourceid;
/* Calibration. */
int min_x;
int max_x;