mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-07 14:06:00 +01:00
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: 57d32d03a8
This commit is contained in:
parent
1dbece74fb
commit
8b1220f5a3
1 changed files with 10 additions and 10 deletions
|
@ -303,21 +303,21 @@ renderer_end:
|
||||||
int width, height;
|
int width, height;
|
||||||
wlr_output_transformed_resolution(wlr_output, &width, &height);
|
wlr_output_transformed_resolution(wlr_output, &width, &height);
|
||||||
|
|
||||||
pixman_region32_t output_damage;
|
pixman_region32_t frame_damage;
|
||||||
pixman_region32_init(&output_damage);
|
pixman_region32_init(&frame_damage);
|
||||||
|
|
||||||
if (server->config->debug_damage_tracking) {
|
|
||||||
pixman_region32_union_rect(&output_damage, &output_damage,
|
|
||||||
0, 0, width, height);
|
|
||||||
}
|
|
||||||
|
|
||||||
enum wl_output_transform transform =
|
enum wl_output_transform transform =
|
||||||
wlr_output_transform_invert(wlr_output->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);
|
transform, width, height);
|
||||||
|
|
||||||
wlr_output_set_damage(wlr_output, &output_damage);
|
if (server->config->debug_damage_tracking) {
|
||||||
pixman_region32_fini(&output_damage);
|
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)) {
|
if (!wlr_output_commit(wlr_output)) {
|
||||||
goto buffer_damage_finish;
|
goto buffer_damage_finish;
|
||||||
|
|
Loading…
Reference in a new issue