mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 18:39:48 +01:00
rootston: fix damage test
This commit is contained in:
parent
bed7522108
commit
3ba447a8f9
1 changed files with 1 additions and 2 deletions
|
@ -278,13 +278,12 @@ static void render_output(struct roots_output *output) {
|
||||||
pixman_region32_union(&damage, &output->damage, &output->previous_damage);
|
pixman_region32_union(&damage, &output->damage, &output->previous_damage);
|
||||||
|
|
||||||
// TODO: fullscreen
|
// TODO: fullscreen
|
||||||
if (!pixman_region32_not_empty(&output->damage)) {
|
if (!pixman_region32_not_empty(&damage)) {
|
||||||
float hz = wlr_output->refresh / 1000.0f;
|
float hz = wlr_output->refresh / 1000.0f;
|
||||||
if (hz <= 0) {
|
if (hz <= 0) {
|
||||||
hz = 60;
|
hz = 60;
|
||||||
}
|
}
|
||||||
wl_event_source_timer_update(output->repaint_timer, 1000.0f / hz);
|
wl_event_source_timer_update(output->repaint_timer, 1000.0f / hz);
|
||||||
pixman_region32_clear(&output->damage);
|
|
||||||
goto damage_finish;
|
goto damage_finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue