]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/163-wm-state.t
testcases: let i3test.pm export $x, adapt testcases
[i3/i3] / testcases / t / 163-wm-state.t
index e55d86824de934d97cab3fb0b21f5773618c3e0d..e5b42df4d96471aee81f46796971c7a56a2c9a83 100644 (file)
@@ -4,10 +4,8 @@
 # Tests if WM_STATE is WM_STATE_NORMAL when mapped and WM_STATE_WITHDRAWN when
 # unmapped.
 #
-use X11::XCB qw(:all);
 use i3test;
-
-my $x = X11::XCB::Connection->new;
+use X11::XCB qw(ICCCM_WM_STATE_NORMAL ICCCM_WM_STATE_WITHDRAWN);
 
 my $window = open_window($x);