mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-04-10 06:11:54 +10:00
Compare commits
2 commits
7a427ce197
...
191085a882
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
191085a882 | ||
|
|
8fd0de4580 |
2 changed files with 12 additions and 6 deletions
|
|
@ -61,7 +61,7 @@ IpcServerConnection::IpcServerConnection(QLocalSocket* socket, IpcServer* server
|
||||||
|
|
||||||
void IpcServerConnection::onDisconnected() {
|
void IpcServerConnection::onDisconnected() {
|
||||||
qCInfo(logIpc) << "IPC connection disconnected" << this;
|
qCInfo(logIpc) << "IPC connection disconnected" << this;
|
||||||
delete this;
|
this->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
void IpcServerConnection::onReadyRead() {
|
void IpcServerConnection::onReadyRead() {
|
||||||
|
|
@ -88,7 +88,7 @@ void IpcServerConnection::onReadyRead() {
|
||||||
|
|
||||||
// async connections reparent
|
// async connections reparent
|
||||||
if (dynamic_cast<IpcServer*>(this->parent()) != nullptr) {
|
if (dynamic_cast<IpcServer*>(this->parent()) != nullptr) {
|
||||||
delete this;
|
this->deleteLater();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -288,11 +288,17 @@ void ProxyWindowBase::setVisibleDirect(bool visible) {
|
||||||
this->bBackerVisibility = false;
|
this->bBackerVisibility = false;
|
||||||
this->deleteWindow();
|
this->deleteWindow();
|
||||||
}
|
}
|
||||||
} else if (this->window != nullptr) {
|
} else {
|
||||||
|
if (visible && this->window == nullptr) {
|
||||||
|
this->createWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this->window != nullptr) {
|
||||||
if (visible) this->polishItems();
|
if (visible) this->polishItems();
|
||||||
this->window->setVisible(visible);
|
this->window->setVisible(visible);
|
||||||
this->bBackerVisibility = visible;
|
this->bBackerVisibility = visible;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProxyWindowBase::schedulePolish() {
|
void ProxyWindowBase::schedulePolish() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue