aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar hrdl <31923882+hrdl-github@users.noreply.github.com>2023-05-11 11:16:51 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2023-05-11 12:47:56 +0200
commit01b0c11394b88fea2ec8ac691e30504f1e0800f5 (patch)
tree3318b73af7d77e5fb29c9e208070d30a7f9d616f
parentrender: fix titlebar texture clipping (diff)
downloadsway-01b0c11394b88fea2ec8ac691e30504f1e0800f5.tar.gz
sway-01b0c11394b88fea2ec8ac691e30504f1e0800f5.tar.zst
sway-01b0c11394b88fea2ec8ac691e30504f1e0800f5.zip
seatop_down: Call seatop_begin_default after sending touch events
This is consistent with pointer tablet and button events. Fixes #7577.
-rw-r--r--sway/input/seatop_down.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sway/input/seatop_down.c b/sway/input/seatop_down.c
index 81e8d0a7..36f9bb60 100644
--- a/sway/input/seatop_down.c
+++ b/sway/input/seatop_down.c
@@ -64,11 +64,11 @@ static void handle_touch_up(struct sway_seat *seat,
64 } 64 }
65 } 65 }
66 66
67 wlr_seat_touch_notify_up(seat->wlr_seat, event->time_msec, event->touch_id);
68
67 if (wl_list_empty(&e->point_events)) { 69 if (wl_list_empty(&e->point_events)) {
68 seatop_begin_default(seat); 70 seatop_begin_default(seat);
69 } 71 }
70
71 wlr_seat_touch_notify_up(seat->wlr_seat, event->time_msec, event->touch_id);
72} 72}
73 73
74static void handle_touch_down(struct sway_seat *seat, 74static void handle_touch_down(struct sway_seat *seat,
@@ -117,13 +117,13 @@ static void handle_touch_cancel(struct sway_seat *seat,
117 } 117 }
118 } 118 }
119 119
120 if (wl_list_empty(&e->point_events)) {
121 seatop_begin_default(seat);
122 }
123
124 if (e->surface) { 120 if (e->surface) {
125 wlr_seat_touch_notify_cancel(seat->wlr_seat, e->surface); 121 wlr_seat_touch_notify_cancel(seat->wlr_seat, e->surface);
126 } 122 }
123
124 if (wl_list_empty(&e->point_events)) {
125 seatop_begin_default(seat);
126 }
127} 127}
128 128
129static void handle_pointer_axis(struct sway_seat *seat, 129static void handle_pointer_axis(struct sway_seat *seat,