From da5ad66cbc33cec9de7eae938ad22293ae2bd6f8 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Fri, 30 Jun 2023 10:00:56 -0700 Subject: [PATCH] Fix onWindowCreatedTiling not respecting selection of the root node Would previously defer to its last focused child --- src/Hy3Layout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp index 7088498..6497d27 100644 --- a/src/Hy3Layout.cpp +++ b/src/Hy3Layout.cpp @@ -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); } } }