Let Wayland to use QGuiApplication::screenAt (forgotten place)

This commit is contained in:
Ilya Fedin 2024-04-07 13:31:34 +04:00 committed by John Preston
parent 542153d950
commit 3da8351522
1 changed files with 2 additions and 4 deletions

View File

@ -587,11 +587,9 @@ void ChooseSourceProcess::setupGeometryWithParent(
not_null<QWidget*> parent) {
_window->createWinId();
const auto parentScreen = [&] {
if (!::Platform::IsWayland()) {
if (const auto screen = QGuiApplication::screenAt(
if (const auto screen = QGuiApplication::screenAt(
parent->geometry().center())) {
return screen;
}
return screen;
}
return parent->screen();
}();