aboutsummaryrefslogtreecommitdiff
path: root/swaynag/swaynag.5.scd
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2019-11-30 16:29:39 +0100
committerSimon Ser <contact@emersion.fr>2019-12-01 12:44:07 +0100
commitd1eab10266eabbcb33eeb9178491234d059dbe99 (patch)
tree4a39fd7618a54e012688a9ab33d6e961b47333d2 /swaynag/swaynag.5.scd
parent57f615e122fc0c4d4d5665f7e26c276be6b3ee00 (diff)
output: Schedule idle frames if we do not render
Repaint scheduling delays output render and frame done events from output frame events, and block idle frame events from being scheduled in between output frame done and output render in this period of time. If a surface is committed after its frame done event, but before output render, idle frame requests will be blocked, and the surface relies on the upcoming render to schedule a frame. If when the repaint timer expires, output render is deemed unnecessary, no frame will be scheduled. This can lead to surfaces never having their frame callbacks fire. To fix this, we store that a surface has requested a frame in surface_needs_frame. When the repaint expires, if no render is deemed necessary, we check this flag and schedule an idle frame. Fixes #4768
Diffstat (limited to 'swaynag/swaynag.5.scd')
0 files changed, 0 insertions, 0 deletions