]> git.sur5r.net Git - i3/i3/blob - testcases/t/147-regress-floatingmove.t
Merge branch 'fix-take-focus'
[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 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_window($x);
20 my $mid = open_window($x);
21 my $right = open_window($x);
22
23 # go to workspace level
24 cmd 'level up';
25 sleep 0.25;
26
27 # make it floating
28 cmd 'mode toggle';
29 sleep 0.25;
30
31 # move the con outside the floating con
32 cmd 'move before v';
33 sleep 0.25;
34
35 does_i3_live;
36
37 # move another con outside
38 cmd '[id="' . $mid->id . '"] focus';
39 cmd 'move before v';
40 sleep 0.25;
41
42 does_i3_live;
43
44 done_testing;