From f9bf9f9c7924fe3a3d898712035132ec2606ddf9 Mon Sep 17 00:00:00 2001 From: Hardy7cc <30299117+Hardy7cc@users.noreply.github.com> Date: Tue, 28 Jan 2020 17:50:17 +0100 Subject: [PATCH] Fixed changes introduced with wlroots version 0.10.0 (#17) The variable layer in struct wlr_layer_surface_v1 is moved to wlr_layer_surface_v1_state --- kiwmi/desktop/layer_shell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kiwmi/desktop/layer_shell.c b/kiwmi/desktop/layer_shell.c index 2e08d35..b6461ac 100644 --- a/kiwmi/desktop/layer_shell.c +++ b/kiwmi/desktop/layer_shell.c @@ -361,9 +361,9 @@ layer_shell_new_surface_notify(struct wl_listener *listener, void *data) struct kiwmi_output *output = layer_surface->output->data; size_t len = sizeof(output->layers) / sizeof(output->layers[0]); - if (layer_surface->layer >= len) { + if (layer_surface->current.layer >= len) { wlr_log( - WLR_ERROR, "Bad layer surface layer '%d'", layer_surface->layer); + WLR_ERROR, "Bad layer surface layer '%d'", layer_surface->current.layer); wlr_layer_surface_v1_close(layer_surface); free(layer); return; @@ -378,7 +378,7 @@ layer_shell_new_surface_notify(struct wl_listener *listener, void *data) layer->commit.notify = kiwmi_layer_commit_notify; wl_signal_add(&layer_surface->surface->events.commit, &layer->commit); - wl_list_insert(&output->layers[layer_surface->layer], &layer->link); + wl_list_insert(&output->layers[layer_surface->current.layer], &layer->link); // Temporarily set the layer's current state to client_pending // So that we can easily arrange it