From 300c0d97fb9f6f67715ccce448fc5405e8cfb2ff Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Fri, 15 Mar 2024 04:01:10 -0700 Subject: [PATCH] core/window: fix white flash before window content is set --- src/core/proxywindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/proxywindow.cpp b/src/core/proxywindow.cpp index a0e260dc..80842585 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);