From d504c1e5ab84bcbf7648350e867ccdda9b38b9c4 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 21 Nov 2022 18:14:25 +0000 Subject: [PATCH] fix master resizes all --- src/layout/MasterLayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }