mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-29 03:05:05 +00:00
core/window: fix floating window reloading recreating the window
This commit is contained in:
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user