diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-05 20:07:02 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-05 20:14:34 +1000 |
commit | b7b781ff448675cc8486d7aa8f6d78d1f1e7c727 (patch) | |
tree | 8353432463f49d27e94304215eae9129ca727cf3 /include/util/signal.h | |
parent | 24a48d4858a9d5eda0be86e20cbf0d378895063a (diff) |
Prevent excessive frame events when compositor doesn't swap buffers
When we send an output frame event, we should not assume that the
compositor is going to call wlr_output_swap_buffers in response to it.
If the compositor does not swap the buffers, the idle event source still
exists and is executed every time the Wayland event loop becomes idle,
which means we send frame events repeatedly until the buffers are
swapped.
This moves the removal of the idle event source out of
wlr_output_swap_buffers and into wlr_output_send_frame, where it is
guaranteed to be removed.
Diffstat (limited to 'include/util/signal.h')
0 files changed, 0 insertions, 0 deletions