diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-01-29 23:11:54 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-01-31 11:44:03 +0100 |
commit | ee7668c1f2b5ba31420d972161d6d43fc1c84bb4 (patch) | |
tree | db2d114113e60cfa4f5a1c87813c53868e0bf9f1 /sway/tree/output.c | |
parent | xwayland: listen to `request_activate` event (diff) | |
download | sway-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/tree/output.c')
-rw-r--r-- | sway/tree/output.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/tree/output.c b/sway/tree/output.c index ad8d2482..52826c91 100644 --- a/sway/tree/output.c +++ b/sway/tree/output.c | |||
@@ -301,10 +301,10 @@ struct sway_output *output_get_in_direction(struct sway_output *reference, | |||
301 | if (!sway_assert(direction, "got invalid direction: %d", direction)) { | 301 | if (!sway_assert(direction, "got invalid direction: %d", direction)) { |
302 | return NULL; | 302 | return NULL; |
303 | } | 303 | } |
304 | struct wlr_box *output_box = | 304 | struct wlr_box output_box; |
305 | wlr_output_layout_get_box(root->output_layout, reference->wlr_output); | 305 | wlr_output_layout_get_box(root->output_layout, reference->wlr_output, &output_box); |
306 | int lx = output_box->x + output_box->width / 2; | 306 | int lx = output_box.x + output_box.width / 2; |
307 | int ly = output_box->y + output_box->height / 2; | 307 | int ly = output_box.y + output_box.height / 2; |
308 | struct wlr_output *wlr_adjacent = wlr_output_layout_adjacent_output( | 308 | struct wlr_output *wlr_adjacent = wlr_output_layout_adjacent_output( |
309 | root->output_layout, direction, reference->wlr_output, lx, ly); | 309 | root->output_layout, direction, reference->wlr_output, lx, ly); |
310 | if (!wlr_adjacent) { | 310 | if (!wlr_adjacent) { |