mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Chase wlroots: wlr_output_layout refactor
Chases 097ea84cda70a71ad8ea5940b3b3d277167424e5 output-layout: improve API
This commit is contained in:
parent
46e3e29e26
commit
d0b24f73d7
2 changed files with 7 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[wrap-git]
|
||||
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
|
||||
revision = e7c556fcf61eb3121d741cd4da526b2619862678
|
||||
revision = 097ea84cda70a71ad8ea5940b3b3d277167424e5
|
||||
|
||||
[provide]
|
||||
dependency_names = wlroots
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue