aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-08-11 15:18:46 -0700
committerFurkan Sahin <furkan-dev@proton.me>2021-08-11 15:18:46 -0700
commita59c81abad8af61f47d3fa7ef48bda6e8915323a (patch)
tree9ba3d046cf7cb82f759a11b732bb459a8a78e5fe /include
parent948e280704fc2ca2d19017de9de79cdff8a2f7c1 (diff)
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 {
struct wl_listener new_subsurface;
struct wlr_box geo;
+ struct wlr_box extent;
enum zwlr_layer_shell_v1_layer layer;
};