2 # vim:ts=4:sw=4:expandtab
4 # Tests if WM_STATE is WM_STATE_NORMAL when mapped and WM_STATE_WITHDRAWN when
10 my $tmp = fresh_workspace;
12 ok(@{get_ws_content($tmp)} == 0, 'no containers yet');
14 my $first = open_window;
15 my $second = open_window;
17 is($x->input_focus, $second->id, 'second window focused');
18 ok(@{get_ws_content($tmp)} == 2, 'two containers opened');
23 ##############################################################
24 # 1: open two windows (in the same client), kill one and see if
25 # the other one is still there
26 ##############################################################
28 my $tmp = two_windows;
33 ok(@{get_ws_content($tmp)} == 1, 'one container left after killing');
35 ##############################################################
36 # 2: same test case as test 1, but with the explicit variant
38 ##############################################################
45 ok(@{get_ws_content($tmp)} == 1, 'one container left after killing');
47 ##############################################################
48 # 3: open two windows (in the same client), use 'kill client'
49 # and check if both are gone
50 ##############################################################
55 # We need to re-establish the X11 connection which we just killed :).
56 $x = i3test::X11->new;
57 sync_with_i3(no_cache => 1);
59 ok(@{get_ws_content($tmp)} == 0, 'no containers left after killing');