forked from quickshell/quickshell
core/window: fix backingWindowVisible always reporting true
This commit is contained in:
parent
3026d3400a
commit
c3fe93efe6
|
@ -180,15 +180,14 @@ void ProxyWindowBase::setVisibleDirect(bool visible) {
|
||||||
emit this->backerVisibilityChanged();
|
emit this->backerVisibilityChanged();
|
||||||
} else {
|
} else {
|
||||||
if (this->window != nullptr) {
|
if (this->window != nullptr) {
|
||||||
emit this->backerVisibilityChanged();
|
|
||||||
this->window->setVisible(false);
|
this->window->setVisible(false);
|
||||||
|
emit this->backerVisibilityChanged();
|
||||||
this->deleteWindow();
|
this->deleteWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (this->window != nullptr) {
|
} else if (this->window != nullptr) {
|
||||||
if (!visible) emit this->backerVisibilityChanged();
|
|
||||||
this->window->setVisible(visible);
|
this->window->setVisible(visible);
|
||||||
if (visible) emit this->backerVisibilityChanged();
|
emit this->backerVisibilityChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue