2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Always call raise() before activateWindow().

This commit is contained in:
John Preston
2021-06-07 11:25:19 +04:00
parent 1886a5c4ed
commit 303ad02c61
8 changed files with 9 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ constexpr auto kMaxChatEntryHistorySize = 50;
void ActivateWindow(not_null<SessionController*> controller) {
const auto window = controller->widget();
window->raise();
window->activateWindow();
Ui::ActivateWindowDelayed(window);
}