Compare commits

...

2 commits

Author SHA1 Message Date
Furkan Sahin
3191b5d69a Merge branch 'fix-popup-focus' into 'master'
xdg_shell: revoke keyboard grab when unfocused

See merge request wlroots/wlroots!5179
2025-10-23 19:46:58 +00:00
Furkan Sahin
317b3e4f93 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.
2025-10-23 14:43:24 -04:00

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,