Fix PiP on multi-monitor setup.

This commit is contained in:
John Preston 2020-02-10 18:45:23 +04:00
parent 770678e32a
commit 093c2887c3
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}