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

Fixes #135
This commit is contained in:
outfoxxed committed 2025-07-21 02:38:50 -07:00
1 parent fcffbbced8
commit db77c71c21
1 file changed
+2 -2
@@ -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;
}
}