diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2021-08-11 15:18:46 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-08-12 10:05:12 +0200 |
commit | f67ed6772c27d7ba163e8caa3c9eb8481712a716 (patch) | |
tree | 9ba3d046cf7cb82f759a11b732bb459a8a78e5fe /include/sway/layers.h | |
parent | xdg-decoration: let floating clients set borders (diff) | |
download | sway-f67ed6772c27d7ba163e8caa3c9eb8481712a716.tar.gz sway-f67ed6772c27d7ba163e8caa3c9eb8481712a716.tar.zst sway-f67ed6772c27d7ba163e8caa3c9eb8481712a716.zip |
layer_shell: damage previous area when a surface shrinks
When a layer surface shrinks we need to damage the area it previously
occupied, but we don't know the location of all its subsurfaces in the
previous state, so instead damage a rectangle that encloses the entire
previous extent.
Diffstat (limited to 'include/sway/layers.h')
-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 82ac5368..3c33c748 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 | struct wlr_box extent; | ||
25 | enum zwlr_layer_shell_v1_layer layer; | 26 | enum zwlr_layer_shell_v1_layer layer; |
26 | }; | 27 | }; |
27 | 28 | ||