]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Chase wlroots: wlr_output_layout refactor
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 24 Jan 2023 02:57:10 +0000 (03:57 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 27 Nov 2023 21:01:53 +0000 (21:01 +0000)
Chases 097ea84cda70a71ad8ea5940b3b3d277167424e5
output-layout: improve API

src/output.c
subprojects/wlroots.wrap

index f7f95ab19719118473c3a0f72aa14b6838a261d3..7e9e5121376618c63fa12cf78eff8e45692ce52a 100644 (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);
                        }
                }
index 8de14c555bf87a1ebd8cfc131f217465f2cb7b9f..ad5d1d64ab47d7c3afcd2fc8a1feee503aa8f0f9 100644 (file)
@@ -1,6 +1,6 @@
 [wrap-git]
 url = https://gitlab.freedesktop.org/wlroots/wlroots.git
-revision = e7c556fcf61eb3121d741cd4da526b2619862678
+revision = 097ea84cda70a71ad8ea5940b3b3d277167424e5
 
 [provide]
 dependency_names = wlroots