From: Johan Malm Date: Wed, 28 Dec 2022 17:40:34 +0000 (+0000) Subject: layer: get `struct output` from wlr_output user-data X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=349a38e6765bc26ac6932fc3ea662e25ccd4ddaf;p=proto%2Flabwc.git layer: get `struct output` from wlr_output user-data ...rather than output_from_wlr_output() --- 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;