From ded0d67c227d0b7c742313395d418e6ac88c25a3 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Tue, 5 Aug 2014 11:29:27 +0300 Subject: [PATCH] Wait to get wl_output's events before creating surfaces Change-Id: I2eb4b40a4b8b1de7990d06b57b0d7a7b04ee9657 Reviewed-by: Gunnar Sletta --- src/plugins/platforms/wayland/qwaylanddisplay.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/platforms/wayland/qwaylanddisplay.cpp b/src/plugins/platforms/wayland/qwaylanddisplay.cpp index 17ac467c5b4..459c7f461ee 100644 --- a/src/plugins/platforms/wayland/qwaylanddisplay.cpp +++ b/src/plugins/platforms/wayland/qwaylanddisplay.cpp @@ -203,6 +203,8 @@ void QWaylandDisplay::registry_global(uint32_t id, const QString &interface, uin if (interface == QStringLiteral("wl_output")) { mScreens.append(new QWaylandScreen(this, id)); + // We need to get the output events before creating surfaces + forceRoundTrip(); } else if (interface == QStringLiteral("wl_compositor")) { mCompositor.init(registry, id); } else if (interface == QStringLiteral("wl_shm")) {