xdg_shell: revoke keyboard grab when unfocused

explicit popup grabs should be dismissed when the user dismisses the
popup. https://wayland.app/protocols/xdg-shell#xdg_popup:request:grab

fixes issue in which keyboard focus remains with parent container of
popup/context menu even after pointer focuses to new container.
This commit is contained in:
Furkan Sahin 2025-10-19 01:21:55 -04:00
parent 4fe51aa439
commit 7f70173a70

View file

@ -113,7 +113,7 @@ static void xdg_keyboard_grab_enter(struct wlr_seat_keyboard_grab *grab,
}
static void xdg_keyboard_grab_clear_focus(struct wlr_seat_keyboard_grab *grab) {
// keyboard focus should remain on the popup
wlr_seat_keyboard_end_grab(grab->seat);
}
static void xdg_keyboard_grab_key(struct wlr_seat_keyboard_grab *grab, uint32_t time,