aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-28 21:56:21 +0100
committeremersion <contact@emersion.fr>2018-01-28 21:58:02 +0100
commit7881d039b6824eb245496becebf02d3eea55a909 (patch)
tree097db8e84962de2c989f5d89383567d0f8e94181
parentbe888df4c37e33c33ae0a7bb2a1b512538ee0d35 (diff)
rootston: fix output_damage_whole
This should fix artifacts when leaving fullscreen on rotated outputs.
-rw-r--r--types/wlr_output.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 00590136..8995ef5f 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -563,8 +563,11 @@ void wlr_output_update_needs_swap(struct wlr_output *output) {
}
static void output_damage_whole(struct wlr_output *output) {
+ int width, height;
+ wlr_output_effective_resolution(output, &width, &height);
+
pixman_region32_union_rect(&output->damage, &output->damage, 0, 0,
- output->width, output->height);
+ width, height);
wlr_output_update_needs_swap(output);
}