]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/140-focus-lost.t
testcases: drop open_window()s $x parameter, use global one instead
[i3/i3] / testcases / t / 140-focus-lost.t
index fb77f01e83b75ebefb943da352e4cfde2af09162..042afcfefd9e59e21d7c26a628e94c471301e06b 100644 (file)
@@ -3,14 +3,8 @@
 # Regression: Check if the focus stays the same when switching the layout
 # bug introduced by 77d0d42ed2d7ac8cafe267c92b35a81c1b9491eb
 use i3test;
-use X11::XCB qw(:all);
-
-BEGIN {
-    use_ok('X11::XCB::Window');
-}
 
 my $i3 = i3(get_socket_path());
-my $x = X11::XCB::Connection->new;
 
 sub check_order {
     my ($msg) = @_;
@@ -24,9 +18,9 @@ sub check_order {
 
 my $tmp = fresh_workspace;
 
-my $left = open_window($x);
-my $mid = open_window($x);
-my $right = open_window($x);
+my $left = open_window;
+my $mid = open_window;
+my $right = open_window;
 
 sync_with_i3($x);