From d0b24f73d7b3bcbd6bd7aed30b8ae38ab96645ff Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Tue, 24 Jan 2023 03:57:10 +0100 Subject: [PATCH] Chase wlroots: wlr_output_layout refactor Chases 097ea84cda70a71ad8ea5940b3b3d277167424e5 output-layout: improve API --- src/output.c | 8 ++++++-- subprojects/wlroots.wrap | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/output.c b/src/output.c index f7f95ab1..7e9e5121 100644 --- a/src/output.c +++ b/src/output.c @@ -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); } } diff --git a/subprojects/wlroots.wrap b/subprojects/wlroots.wrap index 8de14c55..ad5d1d64 100644 --- a/subprojects/wlroots.wrap +++ b/subprojects/wlroots.wrap @@ -1,6 +1,6 @@ [wrap-git] url = https://gitlab.freedesktop.org/wlroots/wlroots.git -revision = e7c556fcf61eb3121d741cd4da526b2619862678 +revision = 097ea84cda70a71ad8ea5940b3b3d277167424e5 [provide] dependency_names = wlroots -- 2.52.0