mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 08:25:59 +01:00
master: fix resizing wrong window behind in special workspace (#3591)
This commit is contained in:
parent
210be10c92
commit
20e7ccd480
1 changed files with 2 additions and 1 deletions
|
@ -742,8 +742,9 @@ void CHyprMasterLayout::resizeActiveWindow(const Vector2D& pixResize, eRectCorne
|
||||||
default: UNREACHABLE();
|
default: UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto workspaceIdForResizing = PMONITOR->specialWorkspaceID == 0 ? PMONITOR->activeWorkspace : PMONITOR->specialWorkspaceID;
|
||||||
for (auto& n : m_lMasterNodesData) {
|
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);
|
n.percMaster = std::clamp(n.percMaster + delta, 0.05, 0.95);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue