]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/05-ipc.t
tests: Bugfix: 11-goto.t: use mktemp for generating a random mark, not base64
[i3/i3] / testcases / t / 05-ipc.t
index a910c930b19a87e377e1ffa2c57b05ff4de43231..982ece7e9a2c7f232dc530d19b4bfce63edeea7a 100644 (file)
@@ -2,11 +2,6 @@
 # vim:ts=4:sw=4:expandtab
 
 use i3test;
-use X11::XCB qw(:all);
-
-BEGIN {
-    use_ok('X11::XCB::Connection') or BAIL_OUT('Cannot load X11::XCB::Connection');
-}
 
 my $x = X11::XCB::Connection->new;
 
@@ -17,17 +12,14 @@ fresh_workspace;
 #####################################################################
 
 # Create a window so we can get a focus different from NULL
-my $window = open_standard_window($x);
-diag("window->id = " . $window->id);
-
-sleep 0.25;
+my $window = open_window($x);
 
 my $focus = $x->input_focus;
-diag("old focus = $focus");
 
 # Switch to another workspace
 fresh_workspace;
 
+sync_with_i3($x);
 my $new_focus = $x->input_focus;
 isnt($focus, $new_focus, "Focus changed");