diff options
author | emersion <contact@emersion.fr> | 2018-01-18 20:08:26 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-18 20:08:26 +0100 |
commit | 3ba447a8f98ba804e51d9a2caabc5566e386595a (patch) | |
tree | 30a1122a71a2421643ced1ee5fe8ac05445d624f /rootston/output.c | |
parent | bed752210803fa8ed915b6fc86037f4b94d3f6f8 (diff) |
rootston: fix damage test
Diffstat (limited to 'rootston/output.c')
-rw-r--r-- | rootston/output.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rootston/output.c b/rootston/output.c index 8d90ebb7..62327b0c 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -278,13 +278,12 @@ static void render_output(struct roots_output *output) { pixman_region32_union(&damage, &output->damage, &output->previous_damage); // TODO: fullscreen - if (!pixman_region32_not_empty(&output->damage)) { + if (!pixman_region32_not_empty(&damage)) { float hz = wlr_output->refresh / 1000.0f; if (hz <= 0) { hz = 60; } wl_event_source_timer_update(output->repaint_timer, 1000.0f / hz); - pixman_region32_clear(&output->damage); goto damage_finish; } |