2 # vim:ts=4:sw=4:expandtab
4 # Tests if WM_STATE is WM_STATE_NORMAL when mapped and WM_STATE_WITHDRAWN when
8 use X11::XCB qw(ICCCM_WM_STATE_NORMAL ICCCM_WM_STATE_WITHDRAWN);
10 my $window = open_window($x);
14 is($window->state, ICCCM_WM_STATE_NORMAL, 'WM_STATE normal');
18 wait_for_unmap $window;
20 is($window->state, ICCCM_WM_STATE_WITHDRAWN, 'WM_STATE withdrawn');