diff --git a/src/core/proxywindow.cpp b/src/core/proxywindow.cpp index a0e260d..8084258 100644 --- a/src/core/proxywindow.cpp +++ b/src/core/proxywindow.cpp @@ -74,13 +74,10 @@ void ProxyWindowBase::setupWindow() { // clang-format on if (this->window->screen() != this->mScreen) { - auto reshow = this->window->isVisible(); - if (reshow) this->window->setVisible(false); + if (this->window->isVisible()) this->window->setVisible(false); this->window->setScreen(this->mScreen); - if (reshow) this->window->setVisible(true); } - this->window->setScreen(this->mScreen); this->setWidth(this->mWidth); this->setHeight(this->mHeight); this->setColor(this->mColor);