mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix PiP on multi-monitor setup.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user