From 349a38e6765bc26ac6932fc3ea662e25ccd4ddaf Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Wed, 28 Dec 2022 17:40:34 +0000 Subject: [PATCH] layer: get `struct output` from wlr_output user-data ...rather than output_from_wlr_output() --- src/layers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layers.c b/src/layers.c index 818ea72d..cb51f6ba 100644 --- a/src/layers.c +++ b/src/layers.c @@ -247,7 +247,7 @@ move_popup_to_top_layer(struct lab_layer_surface *toplevel, struct server *server = toplevel->server; struct wlr_output *wlr_output = toplevel->scene_layer_surface->layer_surface->output; - struct output *output = output_from_wlr_output(server, wlr_output); + struct output *output = (struct output *)wlr_output->data; struct wlr_box box = { 0 }; wlr_output_layout_get_box(server->output_layout, wlr_output, &box); int lx = toplevel->scene_layer_surface->tree->node.x + box.x;