aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-01-20 18:10:11 +0100
committeremersion <contact@emersion.fr>2018-01-20 18:10:11 +0100
commit78c13ead163e76b1c0ff344eefeadcaeffb3890e (patch)
tree075faa3cbfc1832ed9d1a55ec1eef70be07bdada /backend
parent4ca38b84ede12aed3c3b807521992b3580384f76 (diff)
backend/x11: force rendering the whole output
Diffstat (limited to 'backend')
-rw-r--r--backend/x11/backend.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index e1622d06..a2547f8d 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -395,6 +395,12 @@ static void output_swap_buffers(struct wlr_output *wlr_output) {
if (!eglSwapBuffers(x11->egl.display, output->surf)) {
wlr_log(L_ERROR, "eglSwapBuffers failed: %s", egl_error());
}
+
+ // Damage the whole output
+ // TODO: use the buffer age extension
+ pixman_region32_union_rect(&wlr_output->damage, &wlr_output->damage,
+ 0, 0, wlr_output->width, wlr_output->height);
+ wlr_output_update_needs_swap(wlr_output);
}
static struct wlr_output_impl output_impl = {