diff options
| author | thejch <66577496+thejch@users.noreply.github.com> | 2023-10-17 04:06:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-17 12:06:16 +0100 |
| commit | 20e7ccd48033dcacc233b2a2f46d385049bf299b (patch) | |
| tree | 265e72638cf521a4389274787897629013dec6f4 /src/layout/MasterLayout.cpp | |
| parent | 210be10c92275c73fb37512f7abfde1eece9026b (diff) | |
master: fix resizing wrong window behind in special workspace (#3591)
Diffstat (limited to 'src/layout/MasterLayout.cpp')
| -rw-r--r-- | src/layout/MasterLayout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |
