mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 11:21:28 +00:00
swapped hiding the cursor and sending a touch event as a more logical sequence
This commit is contained in:
parent
284dcb2dc7
commit
7c44c76989
|
@ -364,9 +364,9 @@ static void handle_touch_down(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
// TODO: fall back to cursor simulation if client has not bound to touch
|
// TODO: fall back to cursor simulation if client has not bound to touch
|
||||||
if (seat_is_input_allowed(seat, surface)) {
|
if (seat_is_input_allowed(seat, surface)) {
|
||||||
|
cursor_hide(cursor);
|
||||||
wlr_seat_touch_notify_down(wlr_seat, surface, event->time_msec,
|
wlr_seat_touch_notify_down(wlr_seat, surface, event->time_msec,
|
||||||
event->touch_id, sx, sy);
|
event->touch_id, sx, sy);
|
||||||
cursor_hide(cursor);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
seat_set_focus(seat, focused_node);
|
seat_set_focus(seat, focused_node);
|
||||||
|
|
Loading…
Reference in a new issue