wayland/layershell: use bindable implicit size in exclusive zone calc

Fixes #42
This commit is contained in:
outfoxxed 2025-05-28 02:01:31 -07:00
parent 5ae8e4901a
commit 2e3c15f7a1
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -22,8 +22,8 @@ WlrLayershell::WlrLayershell(QObject* parent): ProxyWindowBase(parent) {
case ExclusionMode::Auto:
const auto anchors = this->bAnchors.value();
if (anchors.horizontalConstraint()) return this->height();
else if (anchors.verticalConstraint()) return this->width();
if (anchors.horizontalConstraint()) return this->bImplicitHeight;
else if (anchors.verticalConstraint()) return this->bImplicitWidth;
else return 0;
}
});