diff options
Diffstat (limited to 'sway/desktop/layer_shell.c')
-rw-r--r-- | sway/desktop/layer_shell.c | 4 |
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) { | |||
297 | if (wlr_output == NULL) { | 297 | if (wlr_output == NULL) { |
298 | return; | 298 | return; |
299 | } | 299 | } |
300 | if (layer_surface->current.committed == 0) { | ||
301 | // The layer surface state didn't change | ||
302 | return; | ||
303 | } | ||
300 | 304 | ||
301 | struct sway_output *output = wlr_output->data; | 305 | struct sway_output *output = wlr_output->data; |
302 | struct wlr_box old_extent = layer->extent; | 306 | struct wlr_box old_extent = layer->extent; |