2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • http://build.i3wm.org/docs/testsuite.html
8 # • http://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • http://build.i3wm.org/docs/ipc.html
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 # (unless you are already familiar with Perl)
17 # Regression test: Floating windows were not correctly unmapped when switching
18 # to a different workspace.
22 my $i3 = i3(get_socket_path());
24 my $tmp = fresh_workspace;
26 #############################################################################
27 # 1: open a floating window, get it mapped
28 #############################################################################
30 # Create a floating window which is smaller than the minimum enforced size of i3
31 my $window = open_floating_window;
32 ok($window->mapped, 'Window is mapped');
34 # switch to a different workspace, see if the window is still mapped?
36 my $otmp = fresh_workspace;
40 ok(!$window->mapped, 'Window is not mapped after switching ws');
42 cmd "nop testcase done";