diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-10 19:39:16 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-10 19:39:16 +0000 |
| commit | 0208dff574ad87b89de59ee5a4f71781efbcff17 (patch) | |
| tree | 63c33acea0a8298fb20218408a8fd681ef4ba7cc /src/layout/MasterLayout.cpp | |
| parent | 3157bebed706493eee6092bb1c8751dcede03cc7 (diff) | |
fix invalid master slave pos calc on y != 0
Diffstat (limited to 'src/layout/MasterLayout.cpp')
| -rw-r--r-- | src/layout/MasterLayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 6584dc3b..f5d18512 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -227,7 +227,7 @@ void CHyprMasterLayout::calculateWorkspace(const int& ws) { if (nd.workspaceID != PWORKSPACE->m_iID || nd.isMaster) continue; - nd.position = Vector2D(PMASTERNODE->size.x + PMASTERNODE->position.x, nextY); + nd.position = PMONITOR->vecReservedTopLeft + PMONITOR->vecPosition + Vector2D(PMASTERNODE->percMaster * PMONITOR->vecSize.x, nextY); float HEIGHT = slavesLeft > 1 ? heightLeft / slavesLeft * nd.percSize : heightLeft; if (HEIGHT > heightLeft * 0.9f && slavesLeft > 1) HEIGHT = heightLeft * 0.9f; |
