src/cursor.c: end popup grab on desktop click

Fixes #949
This commit is contained in:
Consolatis 2023-08-06 12:19:58 +02:00
parent 43db75f43c
commit 7a19184e5e

View file

@ -923,6 +923,12 @@ cursor_button_press(struct seat *seat, struct wlr_pointer_button_event *event)
}
}
if (ctx.type == LAB_SSD_ROOT && wlr_seat_pointer_has_grab(seat->seat)) {
/* Let a click on the desktop cancel an active popup grab */
wlr_seat_pointer_end_grab(seat->seat);
return;
}
/* Bindings to the Frame context swallow mouse events if activated */
bool consumed_by_frame_context =
handle_press_mousebinding(server, &ctx, event->button, resize_edges);