2 # vim:ts=4:sw=4:expandtab
3 # Regression test: Floating windows were not correctly unmapped when switching
4 # to a different workspace.
10 use_ok('X11::XCB::Window');
13 my $i3 = i3(get_socket_path());
15 my $tmp = fresh_workspace;
17 #############################################################################
18 # 1: open a floating window, get it mapped
19 #############################################################################
21 my $x = X11::XCB::Connection->new;
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');
27 # switch to a different workspace, see if the window is still mapped?
29 my $otmp = fresh_workspace;
33 ok(!$window->mapped, 'Window is not mapped after switching ws');
35 cmd "nop testcase done";