summaryrefslogtreecommitdiff
path: root/Xi/xibarriers.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-12-06 12:58:55 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-12-17 15:03:18 +1000
commitc50db6faba4ee1c27b735c6e9c98a4276ba3c7ff (patch)
treea14b394769fb7f365f25f18d93c99bd5cb71846d /Xi/xibarriers.c
parent21a15f9a04ec0a6c8f654eef943561e98db2475d (diff)
Xi: fill in barrier root x/y after clamping to RandR outputs
x/y for barrier events should contain the actual pointer position. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Diffstat (limited to 'Xi/xibarriers.c')
-rw-r--r--Xi/xibarriers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Xi/xibarriers.c b/Xi/xibarriers.c
index 104280c62..048af62a2 100644
--- a/Xi/xibarriers.c
+++ b/Xi/xibarriers.c
@@ -407,6 +407,8 @@ input_constrain_cursor(DeviceIntPtr dev, ScreenPtr screen,
ev.window = c->window->drawable.id;
c->last_timestamp = ms;
+ /* root x/y is filled in later */
+
barrier_events->barrier_event = ev;
barrier_events++;
*nevents += 1;
@@ -436,6 +438,8 @@ input_constrain_cursor(DeviceIntPtr dev, ScreenPtr screen,
ev.window = c->window->drawable.id;
c->last_timestamp = ms;
+ /* root x/y is filled in later */
+
barrier_events->barrier_event = ev;
barrier_events++;
*nevents += 1;