mirror of
https://github.com/swaywm/sway.git
synced 2025-11-23 06:59:48 -05:00
layer-shell: fix commit handler
This commit makes sure the extents are kept up-to-date, fixes not damaging the surface if its layer shell-specific state didn't change, and adds a check if the layer shell-specific state didn't change but the surface got mapped/unmapped, which could affect keyboard focus.
This commit is contained in:
parent
c11b5db4d6
commit
5fd5d6434e
2 changed files with 19 additions and 15 deletions
|
|
@ -22,6 +22,7 @@ struct sway_layer_surface {
|
|||
struct wl_listener new_subsurface;
|
||||
|
||||
struct wlr_box geo;
|
||||
bool mapped;
|
||||
struct wlr_box extent;
|
||||
enum zwlr_layer_shell_v1_layer layer;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue