Skip to content

Commit 2e3c15f

Browse files
committed
wayland/layershell: use bindable implicit size in exclusive zone calc
Fixes #42
1 parent 5ae8e49 commit 2e3c15f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wayland/wlr_layershell/wlr_layershell.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ WlrLayershell::WlrLayershell(QObject* parent): ProxyWindowBase(parent) {
2222
case ExclusionMode::Auto:
2323
const auto anchors = this->bAnchors.value();
2424

25-
if (anchors.horizontalConstraint()) return this->height();
26-
else if (anchors.verticalConstraint()) return this->width();
25+
if (anchors.horizontalConstraint()) return this->bImplicitHeight;
26+
else if (anchors.verticalConstraint()) return this->bImplicitWidth;
2727
else return 0;
2828
}
2929
});

0 commit comments

Comments
 (0)