aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-12-22 08:53:05 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-12-22 08:53:05 -0500
commit788b715776b6d8c1ed3c67929a17a4d0d4079458 (patch)
tree96f8d40d8837b21fafd224f10b45cf79fb99fbf5 /sway/desktop/output.c
parentIPC_SUBSCRIBE ensure request object is an array (diff)
downloadsway-788b715776b6d8c1ed3c67929a17a4d0d4079458.tar.gz
sway-788b715776b6d8c1ed3c67929a17a4d0d4079458.tar.zst
sway-788b715776b6d8c1ed3c67929a17a4d0d4079458.zip
Fixes per wlroots#1441
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c4
1 files changed, 2 insertions, 2 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,
100 } 100 }
101 101
102 struct wlr_box rotated_box; 102 struct wlr_box rotated_box;
103 wlr_box_rotated_bounds(&box, data->rotation, &rotated_box); 103 wlr_box_rotated_bounds(&rotated_box, &box, data->rotation);
104 104
105 struct wlr_box output_box = { 105 struct wlr_box output_box = {
106 .width = output->width, 106 .width = output->width,
@@ -423,7 +423,7 @@ static void damage_surface_iterator(struct sway_output *output,
423 } 423 }
424 424
425 if (whole) { 425 if (whole) {
426 wlr_box_rotated_bounds(&box, rotation, &box); 426 wlr_box_rotated_bounds(&box, &box, rotation);
427 wlr_output_damage_add_box(output->damage, &box); 427 wlr_output_damage_add_box(output->damage, &box);
428 } 428 }
429 429