fix(wayland): layershell auto exclusive zone applies on reload

This commit is contained in:
outfoxxed 2024-02-25 18:34:47 -08:00
parent e2063e8b93
commit 8cd9657f97
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -56,8 +56,9 @@ void WaylandLayershell::setupWindow() {
QObject::connect(this, &ProxyWindowBase::widthChanged, this, &WaylandLayershell::updateAutoExclusion); QObject::connect(this, &ProxyWindowBase::widthChanged, this, &WaylandLayershell::updateAutoExclusion);
QObject::connect(this, &ProxyWindowBase::heightChanged, this, &WaylandLayershell::updateAutoExclusion); QObject::connect(this, &ProxyWindowBase::heightChanged, this, &WaylandLayershell::updateAutoExclusion);
QObject::connect(this, &WaylandLayershell::anchorsChanged, this, &WaylandLayershell::updateAutoExclusion); QObject::connect(this, &WaylandLayershell::anchorsChanged, this, &WaylandLayershell::updateAutoExclusion);
QObject::connect(this, &WaylandLayershell::marginsChanged, this, &WaylandLayershell::updateAutoExclusion);
// clang-format on // clang-format on
this->updateAutoExclusion();
} }
void WaylandLayershell::setWidth(qint32 width) { void WaylandLayershell::setWidth(qint32 width) {
@ -113,7 +114,6 @@ void WaylandLayershell::setNamespace(QString ns) {
qint32 WaylandLayershell::exclusiveZone() const { return this->ext->exclusiveZone(); } qint32 WaylandLayershell::exclusiveZone() const { return this->ext->exclusiveZone(); }
void WaylandLayershell::setExclusiveZone(qint32 exclusiveZone) { void WaylandLayershell::setExclusiveZone(qint32 exclusiveZone) {
qDebug() << "set exclusion" << exclusiveZone;
this->mExclusiveZone = exclusiveZone; this->mExclusiveZone = exclusiveZone;
if (this->mExclusionMode == ExclusionMode::Normal) { if (this->mExclusionMode == ExclusionMode::Normal) {