fix master resizes all

This commit is contained in:
vaxerski 2022-11-21 18:14:25 +00:00
parent c78db1212b
commit d504c1e5ab

View file

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