]> git.sur5r.net Git - i3/i3/blob - testcases/t/137-floating-unmap.t
debian: add 4.1.2-2 upload to changelog
[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 use X11::XCB qw(:all);
8
9 BEGIN {
10     use_ok('X11::XCB::Window');
11 }
12
13 my $i3 = i3(get_socket_path());
14
15 my $tmp = fresh_workspace;
16
17 #############################################################################
18 # 1: open a floating window, get it mapped
19 #############################################################################
20
21 my $x = X11::XCB::Connection->new;
22
23 # Create a floating window which is smaller than the minimum enforced size of i3
24 my $window = open_floating_window($x);
25 ok($window->mapped, 'Window is mapped');
26
27 # switch to a different workspace, see if the window is still mapped?
28
29 my $otmp = fresh_workspace;
30
31 sync_with_i3($x);
32
33 ok(!$window->mapped, 'Window is not mapped after switching ws');
34
35 cmd "nop testcase done";
36
37 done_testing;