]> git.sur5r.net Git - i3/i3/blob - testcases/t/47-regress-floatingmove.t
Merge branch 'tree' into next
[i3/i3] / testcases / t / 47-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 X11::XCB qw(:all);
8 use Time::HiRes qw(sleep);
9 use i3test;
10
11 BEGIN {
12     use_ok('X11::XCB::Window');
13 }
14
15 my $x = X11::XCB::Connection->new;
16
17 my $tmp = fresh_workspace;
18
19 my $left = open_standard_window($x);
20 sleep 0.25;
21 my $mid = open_standard_window($x);
22 sleep 0.25;
23 my $right = open_standard_window($x);
24 sleep 0.25;
25
26 # go to workspace level
27 cmd 'level up';
28 sleep 0.25;
29
30 # make it floating
31 cmd 'mode toggle';
32 sleep 0.25;
33
34 # move the con outside the floating con
35 cmd 'move before v';
36 sleep 0.25;
37
38 does_i3_live;
39
40 # move another con outside
41 cmd '[id="' . $mid->id . '"] focus';
42 cmd 'move before v';
43 sleep 0.25;
44
45 does_i3_live;
46
47 done_testing;