From b86b64086008fadb5c7fb88e6d87130af123cc33 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Fri, 13 Mar 2015 19:45:57 +0100 Subject: [PATCH] Process events from the event loop before typing the first char. --- src/autotype/AutoType.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/autotype/AutoType.cpp b/src/autotype/AutoType.cpp index aac0c0cf8..2143eca76 100644 --- a/src/autotype/AutoType.cpp +++ b/src/autotype/AutoType.cpp @@ -148,6 +148,8 @@ void AutoType::performAutoType(const Entry* entry, QWidget* hideWindow, const QS window = m_plugin->activeWindow(); } + QCoreApplication::processEvents(QEventLoop::AllEvents, 10); + Q_FOREACH (AutoTypeAction* action, actions) { if (m_plugin->activeWindow() != window) { qWarning("Active window changed, interrupting auto-type.");