diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-09-24 08:09:15 +0300 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-09-24 08:09:15 +0300 |
| commit | 0c21ad5dff476f7d5781e118545f7ca5b622fcf7 (patch) | |
| tree | 82325a715f78c8a09c1b0f92f443c22daf377d2f | |
| parent | a28a396eae595dd6e87623f2528add08ce5a06dc (diff) | |
layer-shell: check `committed` bitmask
This avoids infinite configure-ack_configure-commit loop.
| -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) { 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; |
