diff options
author | Simon Ser <contact@emersion.fr> | 2020-01-09 15:34:34 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-01-09 07:41:50 -0700 |
commit | e6fd880686a1bec793eef16cd502ba41bde9a64e (patch) | |
tree | 88f3eb87c3a987597f9d7e3a8085354eb3c387ee /examples/dmabuf-capture.c | |
parent | b5cb6de2328c379d73ac4bf0f71d326fa48d6c56 (diff) |
backend/wayland: listen to wl_buffer.release events
Previously, we just assumed submitting a new frame would make the
compositor release the current one. This isn't always the case, for
instance Sway retains old buffers when a transaction is pending. This
resulted in synchronization issues with clients writing in
front-buffers.
Fix this by un-referencing a wlr_buffer when the parent compositor sends
wl_buffer.release.
Tested by running a fullscreen mpv instance in Sway with the Wayland
backend.
Diffstat (limited to 'examples/dmabuf-capture.c')
0 files changed, 0 insertions, 0 deletions