mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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) {
|
||||
const auto screen = [&]() -> QScreen* {
|
||||
for (const auto screen : QGuiApplication::screens()) {
|
||||
if (screen->virtualGeometry().contains(point)) {
|
||||
if (screen->geometry().contains(point)) {
|
||||
return screen;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue