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

This commit is contained in:
outfoxxed committed 2024-03-15 04:01:10 -07:00
1 parent 5731af562b
commit 300c0d97fb
1 file changed
+1 -4
+1 -4
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);