diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-17 22:52:58 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-17 22:53:03 +0000 |
| commit | 563835404f73419e67e38c7833404e94125f00f2 (patch) | |
| tree | 0bdd7a93477899d8f3f8a16efb45e4e66a04191a /src/layout/MasterLayout.cpp | |
| parent | 2daabfa0e981d8d2e33c068c9cc84ecb3cf2daa0 (diff) | |
remember master width on master close
Diffstat (limited to 'src/layout/MasterLayout.cpp')
| -rw-r--r-- | src/layout/MasterLayout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 0237bca9..775760f2 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -147,7 +147,8 @@ void CHyprMasterLayout::onWindowRemovedTiling(CWindow* pWindow) { // find new one for (auto& nd : m_lMasterNodesData) { if (!nd.isMaster && nd.workspaceID == PNODE->workspaceID) { - nd.isMaster = true; + nd.isMaster = true; + nd.percMaster = PNODE->percMaster; break; } } |
