mirror of
https://github.com/Trensa-Organization/Hyprland.git
synced 2025-03-16 03:03:40 +01:00
remember master width on master close
This commit is contained in:
parent
2daabfa0e9
commit
563835404f
1 changed files with 2 additions and 1 deletions
|
@ -147,7 +147,8 @@ void CHyprMasterLayout::onWindowRemovedTiling(CWindow* pWindow) {
|
||||||
// find new one
|
// find new one
|
||||||
for (auto& nd : m_lMasterNodesData) {
|
for (auto& nd : m_lMasterNodesData) {
|
||||||
if (!nd.isMaster && nd.workspaceID == PNODE->workspaceID) {
|
if (!nd.isMaster && nd.workspaceID == PNODE->workspaceID) {
|
||||||
nd.isMaster = true;
|
nd.isMaster = true;
|
||||||
|
nd.percMaster = PNODE->percMaster;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue