This removes the blanking period until the client takes "control" of the output, resulting in a smoother transition between weston and lease client.
Signed-off-by: Marius Vlad <marius-cristian.v...@nxp.com> --- libweston/compositor-drm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index 253d0f7..98e3ba4 100644 --- a/libweston/compositor-drm.c +++ b/libweston/compositor-drm.c @@ -4115,8 +4115,10 @@ drm_output_disable(struct weston_output *base) output->disable_pending = 0; weston_log("Disabling output %s\n", output->base.name); - drmModeSetCrtc(b->drm.fd, output->crtc_id, - 0, 0, 0, 0, 0, NULL); + /* do not perform a modeset with a blank fb when leasing the output */ + if (!base->lease) + drmModeSetCrtc(b->drm.fd, output->crtc_id, + 0, 0, 0, 0, 0, NULL); drm_output_state_free(output->state_cur); output->state_cur = drm_output_state_alloc(output, NULL); -- 2.9.3 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/wayland-devel