]> git.sur5r.net Git - i3/i3/blob - testcases/t/137-floating-unmap.t
29762594e51922059fd1cf14fd9cfd28b4f1d4c3
[i3/i3] / testcases / t / 137-floating-unmap.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 # Regression test: Floating windows were not correctly unmapped when switching
4 # to a different workspace.
5
6 use i3test;
7
8 my $i3 = i3(get_socket_path());
9
10 my $tmp = fresh_workspace;
11
12 #############################################################################
13 # 1: open a floating window, get it mapped
14 #############################################################################
15
16 # Create a floating window which is smaller than the minimum enforced size of i3
17 my $window = open_floating_window($x);
18 ok($window->mapped, 'Window is mapped');
19
20 # switch to a different workspace, see if the window is still mapped?
21
22 my $otmp = fresh_workspace;
23
24 sync_with_i3($x);
25
26 ok(!$window->mapped, 'Window is not mapped after switching ws');
27
28 cmd "nop testcase done";
29
30 done_testing;