diff options
author | vaxerski <[email protected]> | 2022-11-21 18:14:25 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-11-21 18:14:25 +0000 |
commit | d504c1e5ab84bcbf7648350e867ccdda9b38b9c4 (patch) | |
tree | fe83fdff1e62e19f085598d6c2dd239abe02532e | |
parent | c78db1212ba0d0e53b8c636d745ac9b8c379d2e4 (diff) | |
download | Hyprland-d504c1e5ab84bcbf7648350e867ccdda9b38b9c4.tar.gz Hyprland-d504c1e5ab84bcbf7648350e867ccdda9b38b9c4.zip |
fix master resizes all
-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 6132c656..e22ef5d4 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -366,7 +366,7 @@ void CHyprMasterLayout::resizeActiveWindow(const Vector2D& pixResize, CWindow* p double delta = pixResize.x / PMONITOR->vecSize.x; for (auto& n : m_lMasterNodesData) { - if (n.isMaster) + if (n.isMaster && n.workspaceID == PMONITOR->activeWorkspace) n.percMaster = std::clamp(n.percMaster + delta, 0.05, 0.95); } |