From f67ed6772c27d7ba163e8caa3c9eb8481712a716 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Wed, 11 Aug 2021 15:18:46 -0700 Subject: 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. --- include/sway/layers.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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; }; -- cgit v1.2.3-54-g00ecf