Process focus out events only of current window
This commit is contained in:
parent
10c625c106
commit
e4ef8c5d77
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue