d087b832498325f28b992764c5dc854829a870d8
- Author
- outfoxxed <outfoxxed@outfoxxed.me>
- Committer
- outfoxxed <outfoxxed@outfoxxed.me>
- Date
Message
Fix segfaults caused by new groups not having lastFocusedChild set
Diff
1diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
2index 6a3f4dd1234e2414f8e0a4c285e2cf09cea34a4a..756508441b06b1c3b1dcb601cc3a63720467c262 100644
3--- a/src/Hy3Layout.cpp
4+++ b/src/Hy3Layout.cpp
5@@ -917,6 +917,7 @@ void Hy3Layout::makeGroupOn(CWindow* window, Hy3GroupLayout layout) {
6
7 node->data = layout;
8 node->data.as_group.children.push_back(&this->nodes.back());
9+ node->data.as_group.lastFocusedChild = &this->nodes.back();
10 node->recalcSizePosRecursive();
11
12 return;