forked from quickshell/quickshell
core/window: fix white flash before window content is set
This commit is contained in:
parent
5731af562b
commit
300c0d97fb
|
@ -74,13 +74,10 @@ void ProxyWindowBase::setupWindow() {
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
if (this->window->screen() != this->mScreen) {
|
if (this->window->screen() != this->mScreen) {
|
||||||
auto reshow = this->window->isVisible();
|
if (this->window->isVisible()) this->window->setVisible(false);
|
||||||
if (reshow) this->window->setVisible(false);
|
|
||||||
this->window->setScreen(this->mScreen);
|
this->window->setScreen(this->mScreen);
|
||||||
if (reshow) this->window->setVisible(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this->window->setScreen(this->mScreen);
|
|
||||||
this->setWidth(this->mWidth);
|
this->setWidth(this->mWidth);
|
||||||
this->setHeight(this->mHeight);
|
this->setHeight(this->mHeight);
|
||||||
this->setColor(this->mColor);
|
this->setColor(this->mColor);
|
||||||
|
|
Loading…
Reference in a new issue