mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Let Wayland to use QGuiApplication::screenAt
Looks like it works correctly nowadays
This commit is contained in:
@@ -794,11 +794,9 @@ void OverlayWidget::moveToScreen(bool inMove) {
|
||||
if (!widget) {
|
||||
return nullptr;
|
||||
}
|
||||
if (!Platform::IsWayland()) {
|
||||
if (const auto screen = QGuiApplication::screenAt(
|
||||
if (const auto screen = QGuiApplication::screenAt(
|
||||
widget->geometry().center())) {
|
||||
return screen;
|
||||
}
|
||||
return screen;
|
||||
}
|
||||
return widget->screen();
|
||||
};
|
||||
|
||||
@@ -505,11 +505,9 @@ void PipPanel::setPositionDefault() {
|
||||
if (!widget) {
|
||||
return nullptr;
|
||||
}
|
||||
if (!Platform::IsWayland()) {
|
||||
if (const auto screen = QGuiApplication::screenAt(
|
||||
if (const auto screen = QGuiApplication::screenAt(
|
||||
widget->geometry().center())) {
|
||||
return screen;
|
||||
}
|
||||
return screen;
|
||||
}
|
||||
return widget->screen();
|
||||
};
|
||||
|
||||
+1
-1
Submodule Telegram/lib_ui updated: fa8de8b199...476d751251
Reference in New Issue
Block a user