diff options
author | emersion <contact@emersion.fr> | 2018-10-01 11:07:58 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-10-04 21:56:38 +0200 |
commit | 26b9d6dbb1f060405c02b6b66527b0272f79d495 (patch) | |
tree | eafc3eaae5736ed8ae325f51c12a1fb60b70a94f /backend/x11 | |
parent | 78389fe72225f9baf7def744825323f54ac4ee8e (diff) |
output: send present event from all backends
Diffstat (limited to 'backend/x11')
-rw-r--r-- | backend/x11/output.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c index e0210b1a..8cd8ee33 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -102,7 +102,12 @@ static bool output_swap_buffers(struct wlr_output *wlr_output, struct wlr_x11_output *output = (struct wlr_x11_output *)wlr_output; struct wlr_x11_backend *x11 = output->x11; - return wlr_egl_swap_buffers(&x11->egl, output->surf, damage); + if (!wlr_egl_swap_buffers(&x11->egl, output->surf, damage)) { + return false; + } + + wlr_output_send_present(wlr_output, NULL, 0, 0); + return true; } static const struct wlr_output_impl output_impl = { |