da5ad66cbc33cec9de7eae938ad22293ae2bd6f8
- Author
- outfoxxed <outfoxxed@outfoxxed.me>
- Committer
- outfoxxed <outfoxxed@outfoxxed.me>
- Date
Message
Fix onWindowCreatedTiling not respecting selection of the root node
Would previously defer to its last focused child
Diff
1diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
2index 7088498c0ed3bf1fd84407015c4c1eeca887801f..6497d27a7b5cbfaf6deb78d8a9541c89ea294064 100644
3--- a/src/Hy3Layout.cpp
4+++ b/src/Hy3Layout.cpp
5@@ -44,7 +44,7 @@ void Hy3Layout::onWindowCreatedTiling(CWindow* window) {
6
7 // opening_after->parent cannot be nullptr
8 if (opening_after == root) {
9- opening_after = root->data.as_group.focused_child;
10+ opening_after = opening_after->intoGroup(Hy3GroupLayout::SplitH);
11 }
12 }
13 }