From 093c2887c3755f19d77d767903c00e89916be682 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 10 Feb 2020 18:45:23 +0400 Subject: [PATCH] Fix PiP on multi-monitor setup. --- Telegram/SourceFiles/media/view/media_view_pip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }