From 3a6428f411975600735c1f39436b73797ae18c3c Mon Sep 17 00:00:00 2001 From: nobody <> Date: Tue, 9 Jul 2024 20:34:00 +0200 Subject: [PATCH] hack --- src/client/qwaylandwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp index c3725ffc..b8dda748 100644 --- a/src/client/qwaylandwindow.cpp +++ b/src/client/qwaylandwindow.cpp @@ -1407,10 +1407,11 @@ void QWaylandWindow::handleScreensChanged() { QPlatformScreen *newScreen = calculateScreenFromSurfaceEvents(); - if (newScreen->screen() == window()->screen()) + QScreen *newQScreen = newScreen == nullptr ? nullptr : newScreen->screen(); + if (newQScreen == window()->screen()) return; - QWindowSystemInterface::handleWindowScreenChanged(window(), newScreen->QPlatformScreen::screen()); + QWindowSystemInterface::handleWindowScreenChanged(window(), newQScreen); if (fixedToplevelPositions && !QPlatformWindow::parent() && window()->type() != Qt::Popup && window()->type() != Qt::ToolTip -- 2.45.2