diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-12-22 08:53:05 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-12-22 08:53:05 -0500 |
commit | 788b715776b6d8c1ed3c67929a17a4d0d4079458 (patch) | |
tree | 96f8d40d8837b21fafd224f10b45cf79fb99fbf5 | |
parent | IPC_SUBSCRIBE ensure request object is an array (diff) | |
download | sway-788b715776b6d8c1ed3c67929a17a4d0d4079458.tar.gz sway-788b715776b6d8c1ed3c67929a17a4d0d4079458.tar.zst sway-788b715776b6d8c1ed3c67929a17a4d0d4079458.zip |
Fixes per wlroots#1441
-rw-r--r-- | sway/desktop/output.c | 4 | ||||
-rw-r--r-- | sway/desktop/render.c | 2 |
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, | |||
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 | ||
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, | |||
73 | 73 | ||
74 | enum wl_output_transform transform = | 74 | enum wl_output_transform transform = |
75 | wlr_output_transform_invert(wlr_output->transform); | 75 | wlr_output_transform_invert(wlr_output->transform); |
76 | wlr_box_transform(&box, transform, ow, oh, &box); | 76 | wlr_box_transform(&box, &box, transform, ow, oh); |
77 | 77 | ||
78 | wlr_renderer_scissor(renderer, &box); | 78 | wlr_renderer_scissor(renderer, &box); |
79 | } | 79 | } |