diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-08 10:10:25 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-05-08 14:33:50 +1000 |
commit | 00bc043fa0398a1d14d46b87da2ff3031a9535dc (patch) | |
tree | 8d70096cc5a01aad34de7cd307096bec16e462b5 /dix/eventconvert.c | |
parent | bae070914fc27db122e6131ae4838559c4a72f65 (diff) |
dix: export subpixel precision in XI2 events for root/event coordinates.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/eventconvert.c')
-rw-r--r-- | dix/eventconvert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dix/eventconvert.c b/dix/eventconvert.c index e51b8ec07..58fd6d2c2 100644 --- a/dix/eventconvert.c +++ b/dix/eventconvert.c @@ -385,8 +385,8 @@ eventToDeviceEvent(DeviceEvent *ev, xEvent **xi) xde->valuators_len = vallen; xde->deviceid = ev->deviceid; xde->sourceid = ev->sourceid; - xde->root_x = FP1616(ev->root_x, 0); - xde->root_y = FP1616(ev->root_y, 0); + xde->root_x = FP1616(ev->root_x, ev->root_x_frac); + xde->root_y = FP1616(ev->root_y, ev->root_y_frac); xde->mods.base_mods = ev->mods.base; xde->mods.latched_mods = ev->mods.latched; |