Don't set screen for media viewer on Wayland
This commit is contained in:
parent
b2047c9558
commit
76a7cc9229
|
@ -441,7 +441,12 @@ void OverlayWidget::moveToScreen() {
|
|||
: nullptr;
|
||||
const auto activeWindowScreen = widgetScreen(window);
|
||||
const auto myScreen = widgetScreen(this);
|
||||
if (activeWindowScreen && myScreen && myScreen != activeWindowScreen) {
|
||||
// Wayland doesn't support positioning, but Qt emits screenChanged anyway
|
||||
// and geometry of the widget become broken
|
||||
if (activeWindowScreen
|
||||
&& myScreen
|
||||
&& myScreen != activeWindowScreen
|
||||
&& !Platform::IsWayland()) {
|
||||
windowHandle()->setScreen(activeWindowScreen);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue