Fix onWindowCreatedTiling not respecting selection of the root node

Would previously defer to its last focused child
This commit is contained in:
outfoxxed 2023-06-30 10:00:56 -07:00
parent fe98ccaf9a
commit da5ad66cbc
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -44,7 +44,7 @@ void Hy3Layout::onWindowCreatedTiling(CWindow* window) {
// opening_after->parent cannot be nullptr
if (opening_after == root) {
opening_after = root->data.as_group.focused_child;
opening_after = opening_after->intoGroup(Hy3GroupLayout::SplitH);
}
}
}