wayland: Don't track last focused internal window
QGuiApplication::focusWindow() can be used instead.
This commit is contained in:
parent
dd6a60beea
commit
c51de0f370
1 changed files with 1 additions and 3 deletions
|
@ -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<qint32> m_pressedIds;
|
||||
QPointF m_lastGlobalTouchPos;
|
||||
QPointF m_lastLocalTouchPos;
|
||||
QPointer<QWindow> m_lastFocus;
|
||||
};
|
||||
|
||||
class DecorationEventFilter : public InputEventFilter {
|
||||
|
|
Loading…
Reference in a new issue