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,12 +288,18 @@ void ProxyWindowBase::setVisibleDirect(bool visible) {
|
|||
this->bBackerVisibility = false;
|
||||
this->deleteWindow();
|
||||
}
|
||||
} else if (this->window != nullptr) {
|
||||
} else {
|
||||
if (visible && this->window == nullptr) {
|
||||
this->createWindow();
|
||||
}
|
||||
|
||||
if (this->window != nullptr) {
|
||||
if (visible) this->polishItems();
|
||||
this->window->setVisible(visible);
|
||||
this->bBackerVisibility = visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ProxyWindowBase::schedulePolish() {
|
||||
if (this->isVisibleDirect()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue