From 8d742e315e469895e7988aa3e7e73796904b9de0 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sat, 16 Mar 2024 02:49:41 -0700 Subject: [PATCH] core/window: fix floating window reloading recreating the window --- src/core/proxywindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/proxywindow.cpp b/src/core/proxywindow.cpp index 8084258..d4f528c 100644 --- a/src/core/proxywindow.cpp +++ b/src/core/proxywindow.cpp @@ -73,7 +73,7 @@ void ProxyWindowBase::setupWindow() { QObject::connect(this, &ProxyWindowBase::heightChanged, this, &ProxyWindowBase::onMaskChanged); // clang-format on - if (this->window->screen() != this->mScreen) { + if (this->mScreen != nullptr && this->window->screen() != this->mScreen) { if (this->window->isVisible()) this->window->setVisible(false); this->window->setScreen(this->mScreen); }