aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config/output.c
diff options
context:
space:
mode:
authorLibravatar Kirill Primak <vyivel@eclair.cafe>2022-01-29 23:11:54 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2022-01-31 11:44:03 +0100
commitee7668c1f2b5ba31420d972161d6d43fc1c84bb4 (patch)
treedb2d114113e60cfa4f5a1c87813c53868e0bf9f1 /sway/config/output.c
parentxwayland: listen to `request_activate` event (diff)
downloadsway-ee7668c1f2b5ba31420d972161d6d43fc1c84bb4.tar.gz
sway-ee7668c1f2b5ba31420d972161d6d43fc1c84bb4.tar.zst
sway-ee7668c1f2b5ba31420d972161d6d43fc1c84bb4.zip
chore: chase wlr_output_layout_get_box() update
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3439
Diffstat (limited to 'sway/config/output.c')
-rw-r--r--sway/config/output.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index fa509252..88514ac0 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -546,12 +546,12 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
546 } 546 }
547 547
548 // Update output->{lx, ly, width, height} 548 // Update output->{lx, ly, width, height}
549 struct wlr_box *output_box = 549 struct wlr_box output_box;
550 wlr_output_layout_get_box(root->output_layout, wlr_output); 550 wlr_output_layout_get_box(root->output_layout, wlr_output, &output_box);
551 output->lx = output_box->x; 551 output->lx = output_box.x;
552 output->ly = output_box->y; 552 output->ly = output_box.y;
553 output->width = output_box->width; 553 output->width = output_box.width;
554 output->height = output_box->height; 554 output->height = output_box.height;
555 555
556 if (!output->enabled) { 556 if (!output->enabled) {
557 output_enable(output); 557 output_enable(output);