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 = $x->root->create_child(
25 class => WINDOW_CLASS_INPUT_OUTPUT,
26 rect => [ 0, 0, 30, 30],
27 background_color => '#C0C0C0',
28 # replace the type with 'utility' as soon as the coercion works again in X11::XCB
29 window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_UTILITY'),
32 isa_ok($window, 'X11::XCB::Window');
38 ok($window->mapped, 'Window is mapped');
40 # switch to a different workspace, see if the window is still mapped?
42 my $otmp = fresh_workspace;
46 ok(!$window->mapped, 'Window is not mapped after switching ws');
48 cmd "nop testcase done";