mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
core/window: fix white flash before window content is set
This commit is contained in:
1 file changed
+1
-4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user