Don't call con_focus in tree_move

Fixes:
- Issue where moving an urgent (unfocused) window resets it's urgency
hint.
- Moving an unfocused container to a new parent should not move it to
the top of the focus stack.
This commit is contained in:
Orestis Floros
2017-09-22 04:48:32 +03:00
parent 6222ab1084
commit d66fa51f33
3 changed files with 44 additions and 5 deletions

View File

@ -106,4 +106,20 @@ $windows[0] = open_window;
cmd 'move left';
confirm_focus('split-v + move');
######################################################################
# Test that moving an unfocused container maintains the correct focus
# order.
# Layout: H [ A V1 [ B C D ] ]
######################################################################
fresh_workspace;
$windows[3] = open_window;
$windows[2] = open_window;
cmd 'split v';
$windows[1] = open_window;
$windows[0] = open_window;
cmd '[id=' . $windows[3]->id . '] move right';
confirm_focus('split-v + unfocused move');
done_testing;