Skip to content

Commit db77c71

Browse files
committed
wayland/layershell: use width over height in horizontal auto exclude
Fixes #135
1 parent fcffbbc commit db77c71

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
@@ -26,8 +26,8 @@ WlrLayershell::WlrLayershell(QObject* parent): ProxyWindowBase(parent) {
2626
switch (this->bcExclusionEdge.value()) {
2727
case Qt::TopEdge: return this->bImplicitHeight + margins.bottom;
2828
case Qt::BottomEdge: return this->bImplicitHeight + margins.top;
29-
case Qt::LeftEdge: return this->bImplicitHeight + margins.right;
30-
case Qt::RightEdge: return this->bImplicitHeight + margins.left;
29+
case Qt::LeftEdge: return this->bImplicitWidth + margins.right;
30+
case Qt::RightEdge: return this->bImplicitWidth + margins.left;
3131
default: return 0;
3232
}
3333
}

0 commit comments

Comments
 (0)