2 # vim:ts=4:sw=4:expandtab
4 # Check if stacking containers can be used independantly of
5 # the split mode (horizontal/vertical) of the underlying
10 my $i3 = i3(get_socket_path());
12 my $tmp = fresh_workspace;
14 ok(@{get_ws_content($tmp)} == 0, 'no containers yet');
16 # Enforce vertical split mode
19 my $first = open_empty_con($i3);
20 my $second = open_empty_con($i3);
22 isnt($first, $second, 'two different containers opened');
24 ##############################################################
25 # change mode to stacking and cycle through the containers
26 ##############################################################
28 cmd 'layout stacking';
29 is(get_focused($tmp), $second, 'second container still focused');
32 is(get_focused($tmp), $first, 'first container focused');
35 is(get_focused($tmp), $second, 'second container focused again');
37 ##############################################################
38 # now change the orientation to horizontal and cycle
39 ##############################################################
46 is(get_focused($tmp), $first, 'first container focused');
49 is(get_focused($tmp), $second, 'second container focused again');