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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user