From 5ef1d81af0401c2c1db396749d11b3ad8e7752a7 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Thu, 14 Aug 2014 16:50:57 +0300 Subject: [PATCH] Flush the wayland events on the dispatcher's awake signal This is not normally needed, but it is when an app, like our client test, needs to have the requests flushed out by a QCoreApplication::processEvents call. Change-Id: Id821eaf5b612dc44281141181a09718f409e7eb6 Reviewed-by: Robin Burchell --- src/plugins/platforms/wayland/qwaylandintegration.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/wayland/qwaylandintegration.cpp b/src/plugins/platforms/wayland/qwaylandintegration.cpp index 85300a13062..88eeed842ad 100644 --- a/src/plugins/platforms/wayland/qwaylandintegration.cpp +++ b/src/plugins/platforms/wayland/qwaylandintegration.cpp @@ -194,6 +194,7 @@ void QWaylandIntegration::initialize() { QAbstractEventDispatcher *dispatcher = QGuiApplicationPrivate::eventDispatcher; QObject::connect(dispatcher, SIGNAL(aboutToBlock()), mDisplay, SLOT(flushRequests())); + QObject::connect(dispatcher, SIGNAL(awake()), mDisplay, SLOT(flushRequests())); } QPlatformFontDatabase *QWaylandIntegration::fontDatabase() const