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:
@ -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;
|
||||
|
Reference in New Issue
Block a user