Give keyboard focus to xdg-popups of unfocused layer-shell clients

...in support of enabling panel menus to be opened by keyboard shortcuts
and get keyboard focus so that they can be operated with the keyboard.

An example use-case is the xfce4-panel applications-menu being opened by
the command xfce4-popup-applicationmenu.
This commit is contained in:
Johan Malm 2025-10-23 19:06:33 +01:00
parent df8e3d819c
commit df205592c2
3 changed files with 21 additions and 0 deletions

View file

@ -380,6 +380,7 @@ void desktop_focus_topmost_view(struct server *server);
void seat_init(struct server *server);
void seat_finish(struct server *server);
void seat_reconfigure(struct server *server);
void seat_force_focus_surface(struct seat *seat, struct wlr_surface *surface);
void seat_focus_surface(struct seat *seat, struct wlr_surface *surface);
void seat_pointer_end_grab(struct seat *seat, struct wlr_surface *surface);