summaryrefslogtreecommitdiff
path: root/dix/eventconvert.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-04-19 21:31:56 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-19 22:28:12 +1000
commit129ac9a9145323e3f126590b491e718f976f80ce (patch)
tree219f273637b0ddab1378cf265474513ecf36639c /dix/eventconvert.c
parenteeb1e4cd254c047539933c3b886037e67ef30762 (diff)
dix: set root_x/y for device events.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/eventconvert.c')
-rw-r--r--dix/eventconvert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dix/eventconvert.c b/dix/eventconvert.c
index 8b973a580..b69d9d32e 100644
--- a/dix/eventconvert.c
+++ b/dix/eventconvert.c
@@ -384,6 +384,8 @@ eventToDeviceEvent(DeviceEvent *ev, xEvent **xi)
xde->valuators_len = vallen;
xde->deviceid = ev->deviceid;
xde->sourceid = ev->sourceid;
+ xde->root_x.integral = ev->root_x;
+ xde->root_y.integral = ev->root_y;
xde->mods.base_mods = ev->mods.base;
xde->mods.latched_mods = ev->mods.latched;