2 # vim:ts=4:sw=4:expandtab
4 # Regression: make a container floating, kill its parent, make it tiling again
8 my $tmp = fresh_workspace;
11 my $left = get_focused($tmp);
13 my $old = get_focused($tmp);
16 my $floating = get_focused($tmp);
17 diag("focused floating: " . get_focused($tmp));
19 # TODO: eliminate this race conditition
23 cmd qq|[con_id="$old"] focus|;
24 is(get_focused($tmp), $old, 'old container focused');
28 cmd qq|[con_id="$left"] focus|;
29 is(get_focused($tmp), $left, 'old container focused');
32 # focus floating window, make it tiling again
33 cmd qq|[con_id="$floating"] focus|;
34 is(get_focused($tmp), $floating, 'floating window focused');