mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
wayland/layershell: use width over height in horizontal auto exclude
Fixes #135
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user