layer-shell: fix commit handler (issue #71)

On commit, do not arrange layers unless the layer shell-specific state
changed or the layer was (un)mapped.

Chase swaywm/sway@5fd5d643 and swaywm/wlroots@754f40f9
This commit is contained in:
Johan Malm 2021-10-15 19:14:07 +01:00
parent b040838d6a
commit 73b8f06a26
2 changed files with 14 additions and 1 deletions

View file

@ -17,6 +17,7 @@ struct lab_layer_surface {
struct wl_listener output_destroy;
struct wlr_box geo;
bool mapped;
};
void layers_init(struct server *server);