diff options
author | 2019-11-28 23:00:03 +0100 | |
---|---|---|
committer | 2019-11-28 23:40:36 +0100 | |
commit | 4b579536288108ec09bb8523dea6799228d3d7fa (patch) | |
tree | 2a24093fdc7ff3124123c4d77f200d6429518873 /common | |
parent | Rename 'node' to 'nodes' in swayipc doc (diff) | |
download | sway-4b579536288108ec09bb8523dea6799228d3d7fa.tar.gz sway-4b579536288108ec09bb8523dea6799228d3d7fa.tar.zst sway-4b579536288108ec09bb8523dea6799228d3d7fa.zip |
output: Ensure that frame_done is delayed on max_render_time
max_render_time can be set on output, view, or both. However, if only
applied to the output, send_frame_done_iterator would erroneously send
frame_done immediately, ignoring the output max_render_time. As
damage_handle_frame processed max_render_time correctly, idle frames
would be blocked in anticipation of the delay that was meant to happen.
Without the delay, frame events would be dispatched during the idle
frame block, and some clients would never receive the frame done events
they had requested, at least not until something else actively drove
another render.
Respecting both view and output max_render_time in
send_frame_done_iterator ensures that the frame events are always
correctly delayed.
Fixes #4756
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions