[wip] layer: focus client on popup-grab focus

...to ensure client gets keyboard focus when the popup was triggered by
IPC.

Requires wlroots >= 0.20.0 (assuming it gets merged)
This commit is contained in:
Johan Malm 2026-02-12 20:14:13 +00:00
parent 918c3290fc
commit a8bd7947ee
4 changed files with 33 additions and 0 deletions

View file

@ -30,6 +30,7 @@ struct lab_layer_popup {
struct wlr_xdg_popup *wlr_popup;
struct wlr_scene_tree *scene_tree;
struct server *server;
struct lab_layer_surface *lab_layer_surface;
/* To simplify moving popup nodes from the bottom to the top layer */
struct wlr_box output_toplevel_sx_box;
@ -38,6 +39,7 @@ struct lab_layer_popup {
struct wl_listener destroy;
struct wl_listener new_popup;
struct wl_listener reposition;
struct wl_listener grab;
};
void layers_init(struct server *server);