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;
19 is($x->input_focus, $second->id, 'second window focused');
20 ok(@{get_ws_content($tmp)} == 2, 'two containers opened');
25 ##############################################################
26 # 1: open two windows (in the same client), kill one and see if
27 # the other one is still there
28 ##############################################################
30 my $tmp = two_windows;
36 ok(@{get_ws_content($tmp)} == 1, 'one container left after killing');
38 ##############################################################
39 # 2: same test case as test 1, but with the explicit variant
41 ##############################################################
49 ok(@{get_ws_content($tmp)} == 1, 'one container left after killing');
51 ##############################################################
52 # 3: open two windows (in the same client), use 'kill client'
53 # and check if both are gone
54 ##############################################################
62 ok(@{get_ws_content($tmp)} == 0, 'no containers left after killing');