aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Bozhinov <ammen99@gmail.com>2019-05-13 14:07:00 +0200
committerSimon Ser <contact@emersion.fr>2019-05-13 18:45:22 +0300
commit03346cb28f13a9f67549e37431725a10066b966b (patch)
tree5151f15e5b0557eb81b7823fdbb22ebb7644fcdf
parent107a1789eab550240fc01e84f896055e487ab216 (diff)
output: clear output->damage on successful commit
-rw-r--r--types/wlr_output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 7c3e39a7..27f5c3ff 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -470,6 +470,7 @@ bool wlr_output_commit(struct wlr_output *output) {
output->frame_pending = true;
output->needs_frame = false;
output_state_clear(&output->pending);
+ pixman_region32_clear(&output->damage);
return true;
}