diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-10-04 22:18:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-04 22:18:19 +0200 |
commit | 24a48d4858a9d5eda0be86e20cbf0d378895063a (patch) | |
tree | 6fbd71fd0fe6f06183a7ee94b03727f69341328b /backend/x11 | |
parent | c67ce71fddeae90f6b3d89a742a77d049ffb3e20 (diff) | |
parent | eac7c2ad2faf49084342d9f805cf06b773723fdd (diff) |
Merge pull request #1272 from emersion/presentation-time
Implement presentation-time
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..1ac12a8d 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); + return true; } static const struct wlr_output_impl output_impl = { |