summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-07-13 11:24:35 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-13 11:35:37 +1000
commitd02c85fbd2a204a78a9d515960d817ed37e3d492 (patch)
tree1f297b9ee965d29e1d4a12636dda0abafb7d10cf
parent07d7fc323367ac93c3c26eaf130284e31aa961ea (diff)
Add the deviceid to XI2 property events.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--include/X11/extensions/XInput2.h1
-rw-r--r--src/XExtInt.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h
index f5a318c..00ecf40 100644
--- a/include/X11/extensions/XInput2.h
+++ b/include/X11/extensions/XInput2.h
@@ -286,6 +286,7 @@ typedef struct {
int extension; /* XI extension offset */
int evtype; /* XI_PropertyEvent */
Time time;
+ int deviceid; /* id of the device that changed */
Atom property;
int what;
} XIPropertyEvent;
diff --git a/src/XExtInt.c b/src/XExtInt.c
index e06cc91..816c8c0 100644
--- a/src/XExtInt.c
+++ b/src/XExtInt.c
@@ -1632,6 +1632,7 @@ wireToPropertyEvent(xXIPropertyEvent *in, XGenericEventCookie *cookie)
out->time = in->time;
out->property = in->property;
out->what = in->what;
+ out->deviceid = in->deviceid;
return 1;
}