mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
Chase wlroots master
We need it for wlr_scene_layer_surface_v1_create()
This commit is contained in:
parent
04ca9fbdf5
commit
b79744e7b0
8 changed files with 29 additions and 32 deletions
12
src/output.c
12
src/output.c
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue