Merge pull request #1641 from swaywm/transformed-events
Update input events per swaywm/wlroots#765
This commit is contained in:
commit
45a50d5afe
|
@ -74,8 +74,7 @@ static void handle_cursor_motion_absolute(struct wl_listener *listener,
|
||||||
struct sway_cursor *cursor =
|
struct sway_cursor *cursor =
|
||||||
wl_container_of(listener, cursor, motion_absolute);
|
wl_container_of(listener, cursor, motion_absolute);
|
||||||
struct wlr_event_pointer_motion_absolute *event = data;
|
struct wlr_event_pointer_motion_absolute *event = data;
|
||||||
wlr_cursor_warp_absolute(cursor->cursor, event->device,
|
wlr_cursor_warp_absolute(cursor->cursor, event->device, event->x, event->y);
|
||||||
event->x_mm / event->width_mm, event->y_mm / event->height_mm);
|
|
||||||
cursor_update_position(cursor);
|
cursor_update_position(cursor);
|
||||||
cursor_send_pointer_motion(cursor, event->time_msec);
|
cursor_send_pointer_motion(cursor, event->time_msec);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue