mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Let Wayland to use QGuiApplication::screenAt (forgotten place)
This commit is contained in:
parent
542153d950
commit
3da8351522
1 changed files with 2 additions and 4 deletions
|
@ -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();
|
||||
}();
|
||||
|
|
Loading…
Add table
Reference in a new issue