diff --git a/src/input.cpp b/src/input.cpp index ddd0a247c0..b0cd73c235 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -990,8 +990,7 @@ class InternalWindowEventFilter : public InputEventFilter { break; } } - if (m_lastFocus != found) { - m_lastFocus = found; + if (QGuiApplication::focusWindow() != found) { QWindowSystemInterface::handleWindowActivated(found); } if (!found) { @@ -1098,7 +1097,6 @@ private: QSet m_pressedIds; QPointF m_lastGlobalTouchPos; QPointF m_lastLocalTouchPos; - QPointer m_lastFocus; }; class DecorationEventFilter : public InputEventFilter {