core/window: fix white flash before window content is set

This commit is contained in:
outfoxxed 2024-03-15 04:01:10 -07:00
parent 5731af562b
commit 300c0d97fb
Signed by: outfoxxed
GPG Key ID: 4C88A185FB89301E
1 changed files with 1 additions and 4 deletions

View File

@ -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);