mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix PiP on multi-monitor setup.
This commit is contained in:
parent
770678e32a
commit
093c2887c3
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ constexpr auto kMsInSecond = 1000;
|
||||||
[[nodiscard]] QRect ScreenFromPosition(QPoint point) {
|
[[nodiscard]] QRect ScreenFromPosition(QPoint point) {
|
||||||
const auto screen = [&]() -> QScreen* {
|
const auto screen = [&]() -> QScreen* {
|
||||||
for (const auto screen : QGuiApplication::screens()) {
|
for (const auto screen : QGuiApplication::screens()) {
|
||||||
if (screen->virtualGeometry().contains(point)) {
|
if (screen->geometry().contains(point)) {
|
||||||
return screen;
|
return screen;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue