layouts: ignore direction forces on non-map

This commit is contained in:
vaxerski
2023-05-24 19:23:07 +02:00
parent 53285a75ad
commit a4c120d608
4 changed files with 6 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ void CHyprMasterLayout::onWindowCreatedTiling(CWindow* pWindow) {
return;
}
if (*PNEWISMASTER || WINDOWSONWORKSPACE == 1) {
if (*PNEWISMASTER || WINDOWSONWORKSPACE == 1 || (!pWindow->m_bFirstMap && OPENINGON->isMaster)) {
for (auto& nd : m_lMasterNodesData) {
if (nd.isMaster && nd.workspaceID == PNODE->workspaceID) {
nd.isMaster = false;