Skip to content

Commit 73c4eb2

Browse files
committed
seatop_down: Call seatop_begin_default after sending touch events
This is consistent with pointer tablet and button events. Fixes swaywm#7577.
1 parent b7e035d commit 73c4eb2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sway/input/seatop_down.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ static void handle_touch_up(struct sway_seat *seat,
6464
}
6565
}
6666

67+
wlr_seat_touch_notify_up(seat->wlr_seat, event->time_msec, event->touch_id);
68+
6769
if (wl_list_empty(&e->point_events)) {
6870
seatop_begin_default(seat);
6971
}
70-
71-
wlr_seat_touch_notify_up(seat->wlr_seat, event->time_msec, event->touch_id);
7272
}
7373

7474
static void handle_touch_down(struct sway_seat *seat,
@@ -117,13 +117,13 @@ static void handle_touch_cancel(struct sway_seat *seat,
117117
}
118118
}
119119

120-
if (wl_list_empty(&e->point_events)) {
121-
seatop_begin_default(seat);
122-
}
123-
124120
if (e->surface) {
125121
wlr_seat_touch_notify_cancel(seat->wlr_seat, e->surface);
126122
}
123+
124+
if (wl_list_empty(&e->point_events)) {
125+
seatop_begin_default(seat);
126+
}
127127
}
128128

129129
static void handle_pointer_axis(struct sway_seat *seat,

0 commit comments

Comments
 (0)