mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
core/proxywindow: create window on visibility for lazily initialized windows
This commit is contained in:
1 parent
7a427ce197
commit
8fd0de4580
1 file changed
+10
-4
@@ -288,10 +288,16 @@ void ProxyWindowBase::setVisibleDirect(bool visible) {
|
||||
this->bBackerVisibility = false;
|
||||
this->deleteWindow();
|
||||
}
|
||||
} else if (this->window != nullptr) {
|
||||
if (visible) this->polishItems();
|
||||
this->window->setVisible(visible);
|
||||
this->bBackerVisibility = visible;
|
||||
} else {
|
||||
if (visible && this->window == nullptr) {
|
||||
this->createWindow();
|
||||
}
|
||||
|
||||
if (this->window != nullptr) {
|
||||
if (visible) this->polishItems();
|
||||
this->window->setVisible(visible);
|
||||
this->bBackerVisibility = visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user