layer: on popup destory, return focus

...to whoever had it before the popop

Co-authored-by: @tokyo4j
This commit is contained in:
Johan Malm 2026-02-16 19:47:12 +00:00 committed by Johan Malm
parent 180293e0bb
commit a277c35c3d
2 changed files with 18 additions and 5 deletions

View file

@ -31,6 +31,7 @@ struct lab_layer_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 */
struct wlr_box output_toplevel_sx_box;