Skip to content

Commit

Permalink
fix master resizes all
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Nov 21, 2022
1 parent c78db12 commit d504c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/MasterLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit d504c1e

Please sign in to comment.