]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/173-regress-focus-assign.t
tests: don’t wait for window map event in open_special
[i3/i3] / testcases / t / 173-regress-focus-assign.t
index 65fcd82982c3fddb5034189faec604b8b3650257..22306db60aa9bb11d6323bdb00a8c79e7efee7f2 100644 (file)
@@ -31,10 +31,15 @@ sub open_special {
     my $wm_class = delete($args{wm_class}) || 'special';
     $args{name} //= 'special window';
 
-    return open_window(
+    # We use dont_map because i3 will not map the window on the current
+    # workspace. Thus, open_window would time out in wait_for_map (2 seconds).
+    my $window = open_window(
         %args,
         before_map => sub { set_wm_class($_->id, $wm_class, $wm_class) },
+        dont_map => 1,
     );
+    $window->map;
+    return $window;
 }
 
 #####################################################################