From 20e7ccd48033dcacc233b2a2f46d385049bf299b Mon Sep 17 00:00:00 2001 From: thejch <66577496+thejch@users.noreply.github.com> Date: Tue, 17 Oct 2023 04:06:16 -0700 Subject: [PATCH] master: fix resizing wrong window behind in special workspace (#3591) --- src/layout/MasterLayout.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 2de43d04..f44e04e3 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -742,8 +742,9 @@ void CHyprMasterLayout::resizeActiveWindow(const Vector2D& pixResize, eRectCorne default: UNREACHABLE(); } + const auto workspaceIdForResizing = PMONITOR->specialWorkspaceID == 0 ? PMONITOR->activeWorkspace : PMONITOR->specialWorkspaceID; for (auto& n : m_lMasterNodesData) { - if (n.isMaster && n.workspaceID == PMONITOR->activeWorkspace) + if (n.isMaster && n.workspaceID == workspaceIdForResizing) n.percMaster = std::clamp(n.percMaster + delta, 0.05, 0.95); }