Skip floating cons in focus (child|parent) and stop them from being split
Focusing child from a workspace should now skip over the floating con and go directly to its child. Focusing parent from that grandchild should leave the workspace focused again.
This commit is contained in:
@ -197,4 +197,23 @@ cmd 'focus right';
|
||||
|
||||
is($x->input_focus, $second->id, 'focus on second container');
|
||||
|
||||
#############################################################################
|
||||
# 7: verify that focusing the parent of a window inside a floating con goes
|
||||
# up to the grandparent (workspace) and that focusing child from the ws
|
||||
# goes back down to the child of the floating con
|
||||
#############################################################################
|
||||
|
||||
$tmp = fresh_workspace;
|
||||
|
||||
my $tiled = open_window;
|
||||
my $floating = open_floating_window;
|
||||
is($x->input_focus, $floating->id, 'floating window focused');
|
||||
|
||||
cmd 'focus parent';
|
||||
|
||||
is(get_ws($tmp)->{focused}, 1, 'workspace is focused');
|
||||
cmd 'focus child';
|
||||
|
||||
is($x->input_focus, $floating->id, 'floating window focused');
|
||||
|
||||
done_testing;
|
||||
|
Reference in New Issue
Block a user