layer: focus popup rather than layer-shell surface

When a opening a layer-shell popup via IPC (like `lxVqt-qdbus openmenu` or
`xfce4-popup-applicationsmenu`), give keyboard focus to the popup, not the
parent layer-shell surface.

Written-by: @tokyo4j
This commit is contained in:
Johan Malm 2026-02-21 13:48:09 +00:00 committed by Johan Malm
parent 00ad5a03f2
commit bdbb1be35a
2 changed files with 20 additions and 18 deletions

View file

@ -30,7 +30,6 @@ 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;
bool parent_was_focused;
/* To simplify moving popup nodes from the bottom to the top layer */