struct wlr_box output_box;
wlr_output_layout_get_box(output->server->output_layout,
output->wlr_output, &output_box);
- int lx = output->usable_area.x
- + (output->usable_area.width - width) / 2
- + output_box.x;
- int ly = output->usable_area.y
- + (output->usable_area.height - height) / 2
- + output_box.y;
+ int lx = output_box.x + (output_box.width - width) / 2;
+ int ly = output_box.y + (output_box.height - height) / 2;
wlr_scene_node_set_position(&output->workspace_osd->node, lx, ly);
wlr_scene_buffer_set_buffer(output->workspace_osd, &buffer->base);
wlr_scene_buffer_set_dest_size(output->workspace_osd,