forked from quickshell/quickshell
wayland/layershell: use bindable implicit size in exclusive zone calc
Fixes #42
This commit is contained in:
parent
5ae8e4901a
commit
2e3c15f7a1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue