diff --git a/Telegram/SourceFiles/media/view/media_view_pip.cpp b/Telegram/SourceFiles/media/view/media_view_pip.cpp index 040561f08f..cba1ecf924 100644 --- a/Telegram/SourceFiles/media/view/media_view_pip.cpp +++ b/Telegram/SourceFiles/media/view/media_view_pip.cpp @@ -47,7 +47,7 @@ constexpr auto kMsInSecond = 1000; [[nodiscard]] QRect ScreenFromPosition(QPoint point) { const auto screen = [&]() -> QScreen* { for (const auto screen : QGuiApplication::screens()) { - if (screen->virtualGeometry().contains(point)) { + if (screen->geometry().contains(point)) { return screen; } }