mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +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