2 # vim:ts=4:sw=4:expandtab
4 # by moving the window in the opposite orientation that its parent has, we
5 # force i3 to create a new split container with the appropriate orientation.
6 # However, when doing that two times in a row, we end up with two split
7 # containers which are then redundant (workspace is horizontal, then v-split,
8 # then h-split – we could just append the children of the latest h-split to the
11 # This testcase checks that the tree is properly flattened after moving.
15 my $tmp = fresh_workspace;
17 my $left = open_window;
18 my $mid = open_window;
19 my $right = open_window;
23 my $ws = get_ws($tmp);
25 is($ws->{orientation}, 'horizontal', 'workspace orientation is horizontal');
26 is(@{$ws->{nodes}}, 3, 'all three windows on workspace level');