mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
not_null<QWidget*> parent) {
|
||||||
_window->createWinId();
|
_window->createWinId();
|
||||||
const auto parentScreen = [&] {
|
const auto parentScreen = [&] {
|
||||||
if (!::Platform::IsWayland()) {
|
if (const auto screen = QGuiApplication::screenAt(
|
||||||
if (const auto screen = QGuiApplication::screenAt(
|
|
||||||
parent->geometry().center())) {
|
parent->geometry().center())) {
|
||||||
return screen;
|
return screen;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return parent->screen();
|
return parent->screen();
|
||||||
}();
|
}();
|
||||||
|
|
Loading…
Add table
Reference in a new issue