mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Fix focus not following a moved window
This commit is contained in:
parent
e0b4a2e5f1
commit
b20b3f7402
1 changed files with 7 additions and 0 deletions
|
@ -1189,6 +1189,13 @@ Hy3Node* shiftOrGetFocus(Hy3Node& node, ShiftDirection direction, bool shift) {
|
|||
target_parent = target_parent->parent;
|
||||
}
|
||||
|
||||
auto* focusnode = &node;
|
||||
|
||||
while (focusnode->parent != nullptr) {
|
||||
focusnode->parent->data.as_group.lastFocusedChild = focusnode;
|
||||
focusnode = focusnode->parent;
|
||||
}
|
||||
|
||||
if (target_parent != target_group && target_parent != nullptr)
|
||||
target_parent->recalcSizePosRecursive();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue