master: fix resizing wrong window behind in special workspace (#3591)

This commit is contained in:
thejch 2023-10-17 04:06:16 -07:00 committed by GitHub
parent 210be10c92
commit 20e7ccd480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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