summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorJon Trulson <jtrulson@ics.com>2012-02-29 16:06:56 -0700
committerQt by Nokia <qt-info@nokia.com>2012-03-09 10:57:59 +0100
commitc3b72e9c2f6b35b33e8564aaa96291901a02ecee (patch)
tree3fd226816f54eb87faebf4e4925e0f2577ecfefb /src/gui
parentbbc97c38d5917d8a403719531454ee24cde9c4fe (diff)
Start eventTime timer so that the .elapsed method will work.
QWindowSystemInterfacePrivate::eventTime.start() is never called, resulting in all calls to QWindowSystemInterfacePrivate::eventTime.elapsed() within qwindowsysteminterface_qpa.cpp to return 0. This could cause events to be lost, such as mouse button press events from the evdevmouse input plugin. Change-Id: Iba9d23b51af80e8532d24ccf382e9077c06bb4be Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qwindowsysteminterface_qpa.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qwindowsysteminterface_qpa.cpp b/src/gui/kernel/qwindowsysteminterface_qpa.cpp
index 5b77d97950..6f0abbdd0c 100644
--- a/src/gui/kernel/qwindowsysteminterface_qpa.cpp
+++ b/src/gui/kernel/qwindowsysteminterface_qpa.cpp
@@ -266,6 +266,10 @@ void QWindowSystemInterfacePrivate::queueWindowSystemEvent(QWindowSystemInterfac
windowSystemEventQueue.append(ev);
queueMutex.unlock();
+ // Make sure the event timer is started.
+ if (!QWindowSystemInterfacePrivate::eventTime.isValid())
+ QWindowSystemInterfacePrivate::eventTime.start();
+
QAbstractEventDispatcher *dispatcher = QGuiApplicationPrivate::qt_qpa_core_dispatcher();
if (dispatcher)
dispatcher->wakeUp();