mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-02-23 03:33:57 +11:00
core/proxywindow: create window on visibility for lazily initialized windows
This commit is contained in:
parent
7a427ce197
commit
8fd0de4580
1 changed files with 10 additions and 4 deletions
|
|
@ -288,10 +288,16 @@ void ProxyWindowBase::setVisibleDirect(bool visible) {
|
||||||
this->bBackerVisibility = false;
|
this->bBackerVisibility = false;
|
||||||
this->deleteWindow();
|
this->deleteWindow();
|
||||||
}
|
}
|
||||||
} else if (this->window != nullptr) {
|
} else {
|
||||||
if (visible) this->polishItems();
|
if (visible && this->window == nullptr) {
|
||||||
this->window->setVisible(visible);
|
this->createWindow();
|
||||||
this->bBackerVisibility = visible;
|
}
|
||||||
|
|
||||||
|
if (this->window != nullptr) {
|
||||||
|
if (visible) this->polishItems();
|
||||||
|
this->window->setVisible(visible);
|
||||||
|
this->bBackerVisibility = visible;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue