From 2e3c15f7a1e76da788c89ac1e252aaf4885bda5d Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Wed, 28 May 2025 02:01:31 -0700 Subject: [PATCH] wayland/layershell: use bindable implicit size in exclusive zone calc Fixes #42 --- src/wayland/wlr_layershell/wlr_layershell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/wlr_layershell/wlr_layershell.cpp b/src/wayland/wlr_layershell/wlr_layershell.cpp index 4bb8a3fe..4e61530b 100644 --- a/src/wayland/wlr_layershell/wlr_layershell.cpp +++ b/src/wayland/wlr_layershell/wlr_layershell.cpp @@ -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; } });