]> git.sur5r.net Git - i3/i3/blob - testcases/t/148-regress-floatingmovews.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 148-regress-floatingmovews.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Regression test for correct focus behaviour when moving a floating con to
5 # another workspace.
6 #
7 use i3test;
8
9 my $tmp = fresh_workspace;
10
11 # open a tiling window on the first workspace
12 open_window;
13 my $first = get_focused($tmp);
14
15 # on a different ws, open a floating window
16 my $otmp = fresh_workspace;
17 open_window;
18 my $float = get_focused($otmp);
19 cmd 'mode toggle';
20 sync_with_i3;
21
22 # move the floating con to first workspace
23 cmd "move workspace $tmp";
24 sync_with_i3;
25
26 # switch to the first ws and check focus
27 is(get_focused($tmp), $float, 'floating client correctly focused');
28
29 done_testing;