From 8cd9657f97e62d4b4da72e0dd312532156254e17 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 25 Feb 2024 18:34:47 -0800 Subject: [PATCH] fix(wayland): layershell auto exclusive zone applies on reload --- src/wayland/waylandlayershell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/waylandlayershell.cpp b/src/wayland/waylandlayershell.cpp index bc59ec77..660b720a 100644 --- a/src/wayland/waylandlayershell.cpp +++ b/src/wayland/waylandlayershell.cpp @@ -56,8 +56,9 @@ void WaylandLayershell::setupWindow() { QObject::connect(this, &ProxyWindowBase::widthChanged, this, &WaylandLayershell::updateAutoExclusion); QObject::connect(this, &ProxyWindowBase::heightChanged, this, &WaylandLayershell::updateAutoExclusion); QObject::connect(this, &WaylandLayershell::anchorsChanged, this, &WaylandLayershell::updateAutoExclusion); - QObject::connect(this, &WaylandLayershell::marginsChanged, this, &WaylandLayershell::updateAutoExclusion); // clang-format on + + this->updateAutoExclusion(); } void WaylandLayershell::setWidth(qint32 width) { @@ -113,7 +114,6 @@ void WaylandLayershell::setNamespace(QString ns) { qint32 WaylandLayershell::exclusiveZone() const { return this->ext->exclusiveZone(); } void WaylandLayershell::setExclusiveZone(qint32 exclusiveZone) { - qDebug() << "set exclusion" << exclusiveZone; this->mExclusiveZone = exclusiveZone; if (this->mExclusionMode == ExclusionMode::Normal) {