aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/desktop/layer_shell.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index 67369fb3..2b4b2027 100644
--- a/sway/desktop/layer_shell.c
+++ b/sway/desktop/layer_shell.c
@@ -297,6 +297,10 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
if (wlr_output == NULL) {
return;
}
+ if (layer_surface->current.committed == 0) {
+ // The layer surface state didn't change
+ return;
+ }
struct sway_output *output = wlr_output->data;
struct wlr_box old_extent = layer->extent;