mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
[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:
parent
918c3290fc
commit
a8bd7947ee
4 changed files with 33 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue