aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-03-28 12:22:45 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-03-28 12:22:45 -0400
commit1e604f3e3583fb1d2a4971c8bf47b842596f20ed (patch)
tree5c9984ad03d8cefcc6bb3de6165f81f912f8dd67 /sway/input/cursor.c
parentAdd subprojects to gitignore (diff)
downloadsway-1e604f3e3583fb1d2a4971c8bf47b842596f20ed.tar.gz
sway-1e604f3e3583fb1d2a4971c8bf47b842596f20ed.tar.zst
sway-1e604f3e3583fb1d2a4971c8bf47b842596f20ed.zip
Update input events per swaywm/wlroots#765
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 73a8ec5c..8a0d1df5 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -74,8 +74,7 @@ static void handle_cursor_motion_absolute(struct wl_listener *listener,
74 struct sway_cursor *cursor = 74 struct sway_cursor *cursor =
75 wl_container_of(listener, cursor, motion_absolute); 75 wl_container_of(listener, cursor, motion_absolute);
76 struct wlr_event_pointer_motion_absolute *event = data; 76 struct wlr_event_pointer_motion_absolute *event = data;
77 wlr_cursor_warp_absolute(cursor->cursor, event->device, 77 wlr_cursor_warp_absolute(cursor->cursor, event->device, event->x, event->y);
78 event->x_mm / event->width_mm, event->y_mm / event->height_mm);
79 cursor_update_position(cursor); 78 cursor_update_position(cursor);
80 cursor_send_pointer_motion(cursor, event->time_msec); 79 cursor_send_pointer_motion(cursor, event->time_msec);
81} 80}