2011-05-13 11:03:52 -04:00
|
|
|
#!perl
|
|
|
|
# vim:ts=4:sw=4:expandtab
|
|
|
|
#
|
|
|
|
# Tests if WM_STATE is WM_STATE_NORMAL when mapped and WM_STATE_WITHDRAWN when
|
|
|
|
# unmapped.
|
|
|
|
#
|
|
|
|
use i3test;
|
2011-11-21 15:39:50 -05:00
|
|
|
use X11::XCB qw(ICCCM_WM_STATE_NORMAL ICCCM_WM_STATE_WITHDRAWN);
|
2011-05-13 11:03:52 -04:00
|
|
|
|
2011-11-21 18:47:32 -05:00
|
|
|
my $window = open_window;
|
2011-05-13 11:03:52 -04:00
|
|
|
|
2011-09-23 15:37:45 -04:00
|
|
|
sync_with_i3($x);
|
2011-05-13 11:03:52 -04:00
|
|
|
|
|
|
|
is($window->state, ICCCM_WM_STATE_NORMAL, 'WM_STATE normal');
|
|
|
|
|
|
|
|
$window->unmap;
|
|
|
|
|
2011-11-21 17:44:20 -05:00
|
|
|
wait_for_unmap $window;
|
2011-05-13 11:03:52 -04:00
|
|
|
|
|
|
|
is($window->state, ICCCM_WM_STATE_WITHDRAWN, 'WM_STATE withdrawn');
|
|
|
|
|
|
|
|
done_testing;
|