wayland/layershell: use width over height in horizontal auto exclude

Fixes #135
This commit is contained in:
outfoxxed 2025-07-21 02:32:50 -07:00
parent fcffbbced8
commit db77c71c21
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -26,8 +26,8 @@ WlrLayershell::WlrLayershell(QObject* parent): ProxyWindowBase(parent) {
switch (this->bcExclusionEdge.value()) {
case Qt::TopEdge: return this->bImplicitHeight + margins.bottom;
case Qt::BottomEdge: return this->bImplicitHeight + margins.top;
case Qt::LeftEdge: return this->bImplicitHeight + margins.right;
case Qt::RightEdge: return this->bImplicitHeight + margins.left;
case Qt::LeftEdge: return this->bImplicitWidth + margins.right;
case Qt::RightEdge: return this->bImplicitWidth + margins.left;
default: return 0;
}
}