summaryrefslogtreecommitdiff
path: root/src/noop-renderer.c
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2024-04-08 14:18:31 +0200
committerMarius Vlad <marius.vlad0@gmail.com>2024-05-29 13:20:11 +0000
commit5e43ef81ae8b8d435023f7d84192d136a05e7d85 (patch)
tree17188b036a21c26f8806ce2ac6fdbacd6aa6220a /src/noop-renderer.c
parentad039cdfd2b473e2e402fa4d67ed3c868957674a (diff)
backend-wayland: don't wait for one frame when starting the repaint loopHEADmain
The repaint loop is started when a client provides a new frame while the compositor is idle. This frame should be shown as soon as possible. So it makes no sense to commit the previous frame one more time before rendering the next frame. Just call weston_output_finish_frame() directly to start repainting immediately. As a side effect, this fixes an issue when the output is resized when no fullscreen shell is involved: At that point, parent.draw_initial_frame is already false, so draw_initial_frame() is not called. But when resizing, the old buffers are removed so the commit happens without a buffer attached to the surface. So the surface is invisible for one frame until the next one is rendered. draw_initial_frame() is not removed here, because it is still needed for the synchronous resize that happens with the fullscreen shell. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'src/noop-renderer.c')
0 files changed, 0 insertions, 0 deletions