aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-04 08:35:18 -0700
committerGitHub <noreply@github.com>2018-07-04 08:35:18 -0700
commit5d1c5ff80b4e50db68fc4e918d0dc3c171a043ae (patch)
treec438204f86a94cce62ec5b52c3910648c9f88e06
parentb0f7072737ecc14d70597ba9002be0be71c3b359 (diff)
parent8c2b4244a1e5adff3ac4d19381f7e73212b9d467 (diff)
Merge pull request #1112 from emersion/fix-debug-damage-tracking
Fix damage tracking debug mode
-rw-r--r--rootston/output.c7
1 files changed, 7 insertions, 0 deletions
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;
}