2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Don't steal window focus to viewer on another screen.

This commit is contained in:
John Preston
2023-02-18 15:16:06 +04:00
parent 18ebaeb726
commit 137c13c9c0
3 changed files with 9 additions and 4 deletions

View File

@@ -1490,10 +1490,7 @@ void Application::windowActivated(not_null<Window::Controller*> window) {
nowSession->updates().updateOnline();
}
}
if (_mediaView
&& !_mediaView->isHidden()
&& !_mediaView->isMinimized()
&& _mediaView->isFullScreen()) {
if (_mediaView && _mediaView->takeFocusFrom(now->widget())) {
_mediaView->activate();
}
}