diff options
author | Simon Ser <contact@emersion.fr> | 2019-04-27 17:41:01 +0300 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-04-27 09:59:01 -0600 |
commit | 8b1220f5a32376578fb2ddc39ba174f455859689 (patch) | |
tree | 5f0622c7273d3b2a147e2136b5f92b08fc25ff28 /rootston | |
parent | 1dbece74fb9f903f9c1bbfc14380c66e85ccc1ec (diff) |
rootston: fix damage tracking debug mode
We want to damage the whole output in this mode. However if we overwrite the
damaged region after it's useless.
Fixes: 57d32d03a87ab4a74230294cefc5fa8b1e28c96d
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/render.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/rootston/render.c b/rootston/render.c index f8e3894f..712e47c0 100644 --- a/rootston/render.c +++ b/rootston/render.c @@ -303,21 +303,21 @@ renderer_end: int width, height; wlr_output_transformed_resolution(wlr_output, &width, &height); - pixman_region32_t output_damage; - pixman_region32_init(&output_damage); - - if (server->config->debug_damage_tracking) { - pixman_region32_union_rect(&output_damage, &output_damage, - 0, 0, width, height); - } + pixman_region32_t frame_damage; + pixman_region32_init(&frame_damage); enum wl_output_transform transform = wlr_output_transform_invert(wlr_output->transform); - wlr_region_transform(&output_damage, &output->damage->current, + wlr_region_transform(&frame_damage, &output->damage->current, transform, width, height); - wlr_output_set_damage(wlr_output, &output_damage); - pixman_region32_fini(&output_damage); + if (server->config->debug_damage_tracking) { + pixman_region32_union_rect(&frame_damage, &frame_damage, + 0, 0, wlr_output->width, wlr_output->height); + } + + wlr_output_set_damage(wlr_output, &frame_damage); + pixman_region32_fini(&frame_damage); if (!wlr_output_commit(wlr_output)) { goto buffer_damage_finish; |