mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-08 22:05:58 +01:00
fix master resizes all
This commit is contained in:
parent
c78db1212b
commit
d504c1e5ab
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue