Chase wlroots: wlr_output_layout refactor

Chases 097ea84cda70a71ad8ea5940b3b3d277167424e5
output-layout: improve API
This commit is contained in:
Consolatis 2023-01-24 03:57:10 +01:00 committed by Johan Malm
parent 46e3e29e26
commit d0b24f73d7
2 changed files with 7 additions and 3 deletions

View file

@ -330,8 +330,12 @@ output_config_apply(struct server *server,
struct wlr_box pos = {0};
wlr_output_layout_get_box(server->output_layout, o, &pos);
if (pos.x != head->state.x || pos.y != head->state.y) {
/* This overrides the automatic layout */
wlr_output_layout_move(server->output_layout, o,
/*
* This overrides the automatic layout
*
* wlr_output_layout_add() in fact means _move()
*/
wlr_output_layout_add(server->output_layout, o,
head->state.x, head->state.y);
}
}

View file

@ -1,6 +1,6 @@
[wrap-git]
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
revision = e7c556fcf61eb3121d741cd4da526b2619862678
revision = 097ea84cda70a71ad8ea5940b3b3d277167424e5
[provide]
dependency_names = wlroots