]> git.sur5r.net Git - i3/i3/blob - testcases/t/147-regress-floatingmove.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 147-regress-floatingmove.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Regression test for moving a con outside of a floating con when there are no
5 # tiling cons on a workspace
6 #
7 use i3test;
8
9 sub sync_cmd {
10     cmd @_;
11     sync_with_i3;
12 }
13
14 my $tmp = fresh_workspace;
15
16 my $left = open_window;
17 my $mid = open_window;
18 my $right = open_window;
19
20 # go to workspace level
21 sync_cmd 'level up';
22
23 # make it floating
24 sync_cmd 'mode toggle';
25
26 # move the con outside the floating con
27 sync_cmd 'move up';
28
29 does_i3_live;
30
31 # move another con outside
32 sync_cmd '[id="' . $mid->id . '"] focus';
33 sync_cmd 'move up';
34
35 does_i3_live;
36
37 done_testing;