Fix segfaults caused by new groups not having lastFocusedChild set

This commit is contained in:
outfoxxed 2023-04-19 18:19:53 -07:00
parent 399da472a0
commit d087b83249
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E

View file

@ -917,6 +917,7 @@ void Hy3Layout::makeGroupOn(CWindow* window, Hy3GroupLayout layout) {
node->data = layout;
node->data.as_group.children.push_back(&this->nodes.back());
node->data.as_group.lastFocusedChild = &this->nodes.back();
node->recalcSizePosRecursive();
return;