Process focus out events only of current window

This commit is contained in:
Eism 2022-02-14 09:54:46 +02:00
parent 10c625c106
commit e4ef8c5d77

View file

@ -128,7 +128,7 @@ bool PopupView::eventFilter(QObject* watched, QEvent* event)
close(); close();
} else if (QEvent::UpdateRequest == event->type()) { } else if (QEvent::UpdateRequest == event->type()) {
repositionWindowIfNeed(); repositionWindowIfNeed();
} else if (QEvent::FocusOut == event->type()) { } else if (QEvent::FocusOut == event->type() && watched == window()) {
doFocusOut(); doFocusOut();
} }