aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
Diffstat (limited to 'rootston')
-rw-r--r--rootston/output.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/rootston/output.c b/rootston/output.c
index 9ca55447..7017bd1f 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -522,12 +522,17 @@ renderer_end:
wlr_renderer_scissor(renderer, NULL);
wlr_renderer_end(renderer);
+ int width, height;
+ wlr_output_transformed_resolution(wlr_output, &width, &height);
+
if (server->config->debug_damage_tracking) {
- int width, height;
- wlr_output_transformed_resolution(wlr_output, &width, &height);
pixman_region32_union_rect(&damage, &damage, 0, 0, width, height);
}
+ enum wl_output_transform transform =
+ wlr_output_transform_invert(wlr_output->transform);
+ wlr_region_transform(&damage, &damage, transform, width, height);
+
if (!wlr_output_damage_swap_buffers(output->damage, &now, &damage)) {
goto damage_finish;
}