]> git.mdlowis.com Git - proto/labwc.git/commitdiff
osd: fix compiler warning
authorJohan Malm <jgm323@gmail.com>
Wed, 20 Apr 2022 17:08:10 +0000 (18:08 +0100)
committerJohan Malm <jgm323@gmail.com>
Wed, 20 Apr 2022 17:08:10 +0000 (18:08 +0100)
src/osd.c

index 8f5fa670f123d166c9577b10559ef3751fe5b2a4..79febfb08d3c9e5fe87a92a2d3c1a72b58e8b6a4 100644 (file)
--- a/src/osd.c
+++ b/src/osd.c
@@ -218,7 +218,7 @@ osd_update(struct server *server)
                        - w / 2 + output_box.x;
                int ly = output->usable_area.y + output->usable_area.height / 2
                        - h / 2 + output_box.y;
-               wlr_scene_node_set_position(&output->osd_tree->node, lx, ly);
+               wlr_scene_node_set_position(&scene_buffer->node, lx, ly);
                wlr_scene_node_set_enabled(&output->osd_tree->node, true);
        }
 }