commit c11b5db4d6c1b9ce658405d92a23dd2993efca8e
parent b7b3ef6dcf904fce8ff072a88e505765a44a4ec6
Author: Kirill Primak <vyivel@posteo.net>
Date: Fri, 24 Sep 2021 08:09:15 +0300
layer-shell: check `committed` bitmask
This avoids infinite configure-ack_configure-commit loop.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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;