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); }