From 768131e4883ed8b04ced6b453721fc28dbf61577 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 26 Nov 2020 11:06:37 +0100 Subject: output: stop assuming a frame is pending in init - The DRM backend initially doesn't have a frame scheduled initially. However the compositor is expected to set a mode to start the rendering loop (frame_pending is set to true in drm_crtc_pageflip). - The headless and X11 backends have a timer to schedule frames, so they ignore this hint completely. - The Wayland backend renders a fake frame to start the rendering loop. It's the only case where a frame is pending on init, move the assumption there. --- backend/wayland/output.c | 1 + 1 file changed, 1 insertion(+) (limited to 'backend') diff --git a/backend/wayland/output.c b/backend/wayland/output.c index abe8e43e..87b06808 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -582,6 +582,7 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *wlr_backend) { NULL)) { goto error; } + wlr_output->frame_pending = true; wl_list_insert(&backend->outputs, &output->link); wlr_output_update_enabled(wlr_output, true); -- cgit v1.2.3