]> git.mdlowis.com Git - proto/labwc.git/commitdiff
layer-shell: replace close() with destroy()
authorJohan Malm <jgm323@gmail.com>
Mon, 16 Aug 2021 06:18:08 +0000 (07:18 +0100)
committerJohan Malm <jgm323@gmail.com>
Mon, 16 Aug 2021 06:18:08 +0000 (07:18 +0100)
Update for the wlroots breaking change in
https://github.com/swaywm/wlroots/pull/3108

src/layers.c

index 0e52b3b6f356c9914428702279d53b78b6f4e5fd..88c879b1c196bb18c4d2a4f3a83be85e393509fd 100644 (file)
@@ -150,8 +150,7 @@ arrange_layer(struct wlr_output *output, struct wl_list *list,
                        box.y -= state->margin.bottom;
                }
                if (box.width < 0 || box.height < 0) {
-                       wlr_log(WLR_ERROR, "protocol error");
-                       wlr_layer_surface_v1_close(layer);
+                       wlr_log(WLR_ERROR, "surface has no positive size");
                        continue;
                }
 
@@ -240,7 +239,7 @@ output_destroy_notify(struct wl_listener *listener, void *data)
                wl_container_of(listener, layer, output_destroy);
        layer->layer_surface->output = NULL;
        wl_list_remove(&layer->output_destroy.link);
-       wlr_layer_surface_v1_close(layer->layer_surface);
+       wlr_layer_surface_v1_destroy(layer->layer_surface);
 }
 
 static void