Always call raise() before activateWindow().
This commit is contained in:
parent
02049aeaa8
commit
b1d5ed4ab5
3 changed files with 4 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ void ActivateWindowDelayed(not_null<QWidget*> widget) {
|
|||
crl::on_main(Window, [=] {
|
||||
if (const auto widget = base::take(Window)) {
|
||||
if (!widget->isHidden()) {
|
||||
widget->raise();
|
||||
widget->activateWindow();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3469,6 +3469,7 @@ void InputField::dropEventInner(QDropEvent *e) {
|
|||
_inDrop = false;
|
||||
_insertedTags.clear();
|
||||
_realInsertPosition = -1;
|
||||
window()->raise();
|
||||
window()->activateWindow();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -304,6 +304,7 @@ void PopupMenu::childHiding(PopupMenu *child) {
|
|||
_activeSubmenu = SubmenuPointer();
|
||||
}
|
||||
if (!_hiding && !isHidden()) {
|
||||
raise();
|
||||
activateWindow();
|
||||
}
|
||||
}
|
||||
|
|
@ -538,6 +539,7 @@ void PopupMenu::showMenu(const QPoint &p, PopupMenu *parent, TriggeredSource sou
|
|||
Platform::UpdateOverlayed(this);
|
||||
show();
|
||||
Platform::ShowOverAll(this);
|
||||
raise();
|
||||
activateWindow();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue