diff options
author | Kirill Primak <vyivel@posteo.net> | 2021-09-24 18:07:37 +0300 |
---|---|---|
committer | Kirill Primak <vyivel@posteo.net> | 2021-09-25 22:21:51 +0300 |
commit | 5fd5d6434e9ebbc453dde33bf58fea931ea2975a (patch) | |
tree | f398ab0c564c42314fd8c648e5fc49dcb3ed10fd /include | |
parent | layer-shell: check `committed` bitmask (diff) | |
download | sway-5fd5d6434e9ebbc453dde33bf58fea931ea2975a.tar.gz sway-5fd5d6434e9ebbc453dde33bf58fea931ea2975a.tar.zst sway-5fd5d6434e9ebbc453dde33bf58fea931ea2975a.zip |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/layers.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/layers.h b/include/sway/layers.h index 3c33c748..224dc5e6 100644 --- a/include/sway/layers.h +++ b/include/sway/layers.h | |||
@@ -22,6 +22,7 @@ struct sway_layer_surface { | |||
22 | struct wl_listener new_subsurface; | 22 | struct wl_listener new_subsurface; |
23 | 23 | ||
24 | struct wlr_box geo; | 24 | struct wlr_box geo; |
25 | bool mapped; | ||
25 | struct wlr_box extent; | 26 | struct wlr_box extent; |
26 | enum zwlr_layer_shell_v1_layer layer; | 27 | enum zwlr_layer_shell_v1_layer layer; |
27 | }; | 28 | }; |