Chase wlroots master

We need it for wlr_scene_layer_surface_v1_create()
This commit is contained in:
Johan Malm 2022-02-14 20:20:16 +00:00
parent 04ca9fbdf5
commit b79744e7b0
8 changed files with 29 additions and 32 deletions

View file

@ -287,12 +287,12 @@ wlr_output_configuration_v1 *create_output_config(struct server *server)
wlr_output_configuration_v1_destroy(config);
return NULL;
}
struct wlr_box *box =
wlr_output_layout_get_box(server->output_layout,
output->wlr_output);
if (box) {
head->state.x = box->x;
head->state.y = box->y;
struct wlr_box box;
wlr_output_layout_get_box(server->output_layout,
output->wlr_output, &box);
if (!wlr_box_empty(&box)) {
head->state.x = box.x;
head->state.y = box.y;
} else {
wlr_log(WLR_ERROR, "failed to get output layout box");
}