From 5fd5d6434e9ebbc453dde33bf58fea931ea2975a Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Fri, 24 Sep 2021 18:07:37 +0300 Subject: 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. --- 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 3c33c748..224dc5e6 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; + bool mapped; struct wlr_box extent; enum zwlr_layer_shell_v1_layer layer; }; -- cgit v1.2.3-54-g00ecf