aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-12-22 08:53:05 -0500
committerDrew DeVault <sir@cmpwn.com>2018-12-22 08:53:05 -0500
commit788b715776b6d8c1ed3c67929a17a4d0d4079458 (patch)
tree96f8d40d8837b21fafd224f10b45cf79fb99fbf5 /sway/desktop
parent0d3cf36c854fb6481e09db07e9b52456e34bce84 (diff)
Fixes per wlroots#1441
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/output.c4
-rw-r--r--sway/desktop/render.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 96ceea86..ed504bdf 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -100,7 +100,7 @@ static bool get_surface_box(struct surface_iterator_data *data,
}
struct wlr_box rotated_box;
- wlr_box_rotated_bounds(&box, data->rotation, &rotated_box);
+ wlr_box_rotated_bounds(&rotated_box, &box, data->rotation);
struct wlr_box output_box = {
.width = output->width,
@@ -423,7 +423,7 @@ static void damage_surface_iterator(struct sway_output *output,
}
if (whole) {
- wlr_box_rotated_bounds(&box, rotation, &box);
+ wlr_box_rotated_bounds(&box, &box, rotation);
wlr_output_damage_add_box(output->damage, &box);
}
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 2afed82d..1260d85a 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -73,7 +73,7 @@ static void scissor_output(struct wlr_output *wlr_output,
enum wl_output_transform transform =
wlr_output_transform_invert(wlr_output->transform);
- wlr_box_transform(&box, transform, ow, oh, &box);
+ wlr_box_transform(&box, &box, transform, ow, oh);
wlr_renderer_scissor(renderer, &box);
}