input: close xdg-popups on touch down

Taken over and now shared from the tablet implementation.
This commit is contained in:
Jens Peters 2024-11-01 09:11:33 +01:00 committed by Hiroaki Yamamoto
parent 7e0cd8ee5a
commit d1cde3c435
4 changed files with 27 additions and 25 deletions

View file

@ -126,6 +126,7 @@ handle_touch_down(struct wl_listener *listener, void *data)
int touch_point_count = wl_list_length(&seat->touch_points);
if (touch_point->surface) {
seat_pointer_end_grab(seat, touch_point->surface);
/* Clear focus to not interfere with touch input */
wlr_seat_pointer_notify_clear_focus(seat->seat);