Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seatop_down: Call seatop_begin_default after sending touch events #7583

Merged
merged 1 commit into from
May 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions sway/input/seatop_down.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ static void handle_touch_up(struct sway_seat *seat,
}
}

wlr_seat_touch_notify_up(seat->wlr_seat, event->time_msec, event->touch_id);

if (wl_list_empty(&e->point_events)) {
seatop_begin_default(seat);
}

wlr_seat_touch_notify_up(seat->wlr_seat, event->time_msec, event->touch_id);
}

static void handle_touch_down(struct sway_seat *seat,
Expand Down Expand Up @@ -117,13 +117,13 @@ static void handle_touch_cancel(struct sway_seat *seat,
}
}

if (wl_list_empty(&e->point_events)) {
seatop_begin_default(seat);
}

if (e->surface) {
wlr_seat_touch_notify_cancel(seat->wlr_seat, e->surface);
}

if (wl_list_empty(&e->point_events)) {
seatop_begin_default(seat);
}
}

static void handle_pointer_axis(struct sway_seat *seat,
Expand Down