Call sendWindowSystemEvents() on deferred flush
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Thu, 4 Dec 2014 20:18:04 +0000 (21:18 +0100)
committerMorten Johan Sørvig <morten.sorvig@theqtcompany.com>
Thu, 13 Aug 2015 18:34:05 +0000 (18:34 +0000)
Calling it directly is less confusing than calling
it indirectly via the "else" branch in
flushWindowSystemEvents.

Change-Id: I085deff09162137606922a5af7ead23e21497b11
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
src/gui/kernel/qwindowsysteminterface.cpp

index 7db38b5909d4ec0b764b939145464dd835f475b1..88cf2dac934672fdaad74d9b84c782e462777cca 100644 (file)
@@ -614,7 +614,7 @@ void QWindowSystemInterface::deferredFlushWindowSystemEvents(QEventLoop::Process
     Q_ASSERT(QThread::currentThread() == QGuiApplication::instance()->thread());
 
     QMutexLocker locker(&QWindowSystemInterfacePrivate::flushEventMutex);
-    flushWindowSystemEvents(flags);
+    sendWindowSystemEvents(flags);
     QWindowSystemInterfacePrivate::eventsFlushed.wakeOne();
 }