From 8c2b4244a1e5adff3ac4d19381f7e73212b9d467 Mon Sep 17 00:00:00 2001 From: emersion Date: Wed, 4 Jul 2018 15:37:04 +0100 Subject: Fix damage tracking debug mode --- rootston/output.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rootston') diff --git a/rootston/output.c b/rootston/output.c index 353d431f..8154816d 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -517,6 +517,13 @@ static void render_output(struct roots_output *output) { renderer_end: wlr_renderer_scissor(renderer, NULL); wlr_renderer_end(renderer); + + 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); + } + if (!wlr_output_damage_swap_buffers(output->damage, &now, &damage)) { goto damage_finish; } -- cgit v1.2.3