aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Some Chinese Guy <freemancrowbar100500@gmail.com>2020-04-03 17:41:49 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2020-04-03 16:47:11 +0200
commit7c44c769891553d1940285a1264b5fbe8de76c75 (patch)
tree6e8810b14c8a836afce81d5dacd0d673c2f4eaa6
parentswaynag: exit on wl_display_roundtrip error (diff)
downloadsway-7c44c769891553d1940285a1264b5fbe8de76c75.tar.gz
sway-7c44c769891553d1940285a1264b5fbe8de76c75.tar.zst
sway-7c44c769891553d1940285a1264b5fbe8de76c75.zip
swapped hiding the cursor and sending a touch event as a more logical sequence
-rw-r--r--sway/input/cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 878a8e99..470bb996 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -364,9 +364,9 @@ static void handle_touch_down(struct wl_listener *listener, void *data) {
364 364
365 // TODO: fall back to cursor simulation if client has not bound to touch 365 // TODO: fall back to cursor simulation if client has not bound to touch
366 if (seat_is_input_allowed(seat, surface)) { 366 if (seat_is_input_allowed(seat, surface)) {
367 cursor_hide(cursor);
367 wlr_seat_touch_notify_down(wlr_seat, surface, event->time_msec, 368 wlr_seat_touch_notify_down(wlr_seat, surface, event->time_msec,
368 event->touch_id, sx, sy); 369 event->touch_id, sx, sy);
369 cursor_hide(cursor);
370 } 370 }
371 371
372 seat_set_focus(seat, focused_node); 372 seat_set_focus(seat, focused_node);