2 # vim:ts=4:sw=4:expandtab
4 # Regression test for closing one of multiple dock clients
10 use_ok('X11::XCB::Window');
13 my $x = X11::XCB::Connection->new;
14 my $i3 = i3(get_socket_path());
16 my $tmp = fresh_workspace;
18 #####################################################################
19 # verify that there is no dock window yet
20 #####################################################################
22 # Children of all dockareas
23 my @docked = get_dock_clients;
25 is(@docked, 0, 'no dock clients yet');
27 #####################################################################
29 #####################################################################
31 my $first = $x->root->create_child(
32 class => WINDOW_CLASS_INPUT_OUTPUT,
33 rect => [ 0, 0, 30, 30],
34 background_color => '#FF0000',
35 window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'),
42 #####################################################################
43 # Open a second dock client
44 #####################################################################
46 my $second = $x->root->create_child(
47 class => WINDOW_CLASS_INPUT_OUTPUT,
48 rect => [ 0, 0, 30, 30],
49 background_color => '#FF0000',
50 window_type => $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK'),
57 #####################################################################
58 # Kill the second dock client
59 #####################################################################
60 cmd "nop destroying dock client";
63 #####################################################################
64 # Now issue a focus command
65 #####################################################################