]> git.mdlowis.com Git - proto/labwc.git/commitdiff
layer: get `struct output` from wlr_output user-data
authorJohan Malm <jgm323@gmail.com>
Wed, 28 Dec 2022 17:40:34 +0000 (17:40 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Thu, 29 Dec 2022 22:18:08 +0000 (23:18 +0100)
...rather than output_from_wlr_output()

src/layers.c

index 818ea72d1db82bcdebccdfa8de5f8840b71809c2..cb51f6bae52b9a2a9353dc66c6fb910bf7cb6a0e 100644 (file)
@@ -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;