diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index 245388078e..d9a63d55fe 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -432,9 +432,7 @@ void OverlayWidget::moveToScreen(bool force) { if (activeWindowScreen && myScreen && myScreen != activeWindowScreen) { windowHandle()->setScreen(activeWindowScreen); } - const auto screen = activeWindowScreen - ? activeWindowScreen - : QApplication::primaryScreen(); + const auto screen = widgetScreen(this); const auto available = screen->geometry(); if (!force && geometry() == available) { return;