aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <rpigott@berkeley.edu>2021-08-11 15:18:46 -0700
committerLibravatar Simon Ser <contact@emersion.fr>2021-08-12 10:05:12 +0200
commitf67ed6772c27d7ba163e8caa3c9eb8481712a716 (patch)
tree9ba3d046cf7cb82f759a11b732bb459a8a78e5fe /include
parentxdg-decoration: let floating clients set borders (diff)
downloadsway-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')
-rw-r--r--include/sway/layers.h1
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