forked from quickshell/quickshell
core/window: fix floating window reloading recreating the window
This commit is contained in:
parent
300c0d97fb
commit
8d742e315e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue