]> git.sur5r.net Git - i3/i3/commitdiff
t/114-client-leader: fix race by waiting until the window is mapped
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 2 Oct 2014 21:07:50 +0000 (23:07 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 2 Oct 2014 21:07:50 +0000 (23:07 +0200)
testcases/t/114-client-leader.t

index 1efe34bf67369c5a05dff7211fefb9cd1216eedb..ec8bff268d876a14e3543e7ef8eae3610cbf1df5 100644 (file)
@@ -109,6 +109,8 @@ $fwindow = open_window({ dont_map => 1 });
 $fwindow->transient_for($right);
 $fwindow->map;
 
+wait_for_map($fwindow);
+
 my $floating_con = get_ws($tmp)->{floating_nodes}[0]->{nodes}[0];
 is($floating_con->{window_properties}->{transient_for}, $right->id, 'WM_TRANSIENT_FOR properly parsed');