mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 00:11:28 +00:00
layer-shell: check committed
bitmask
This avoids infinite configure-ack_configure-commit loop.
This commit is contained in:
parent
b7b3ef6dcf
commit
c11b5db4d6
|
@ -297,6 +297,10 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
|
||||||
if (wlr_output == NULL) {
|
if (wlr_output == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (layer_surface->current.committed == 0) {
|
||||||
|
// The layer surface state didn't change
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
struct sway_output *output = wlr_output->data;
|
struct sway_output *output = wlr_output->data;
|
||||||
struct wlr_box old_extent = layer->extent;
|
struct wlr_box old_extent = layer->extent;
|
||||||
|
|
Loading…
Reference in a new issue