diff options
author | 2023-05-04 17:26:15 +0200 | |
---|---|---|
committer | 2023-05-04 17:34:54 +0200 | |
commit | 3cd7c7178079bf61bb7967690e7767442b369782 (patch) | |
tree | 98fb07720c4d9f8972e9d904594da9a46a7a3108 | |
parent | Add support for touch cancel events (diff) | |
download | sway-3cd7c7178079bf61bb7967690e7767442b369782.tar.gz sway-3cd7c7178079bf61bb7967690e7767442b369782.tar.zst sway-3cd7c7178079bf61bb7967690e7767442b369782.zip |
handle_touch_cancel: fix begin default
I forgot to call seatop_begin_default in
e8f7551e46052a8df04b630bf06565ca77f830fb.
-rw-r--r-- | sway/input/seatop_down.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/input/seatop_down.c b/sway/input/seatop_down.c index c5901f6a..81e8d0a7 100644 --- a/sway/input/seatop_down.c +++ b/sway/input/seatop_down.c | |||
@@ -117,6 +117,10 @@ 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 | |||
120 | if (e->surface) { | 124 | if (e->surface) { |
121 | wlr_seat_touch_notify_cancel(seat->wlr_seat, e->surface); | 125 | wlr_seat_touch_notify_cancel(seat->wlr_seat, e->surface); |
122 | } | 126 | } |