]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/217-NET_CURRENT_DESKTOP.t
tests: fix a few racy testcases by adding sync_with_i3 calls
[i3/i3] / testcases / t / 217-NET_CURRENT_DESKTOP.t
index 9ea4bd175a2e7836e5139fe17d5fb812f9ab779f..fe2ea675f62fd922368371fdd4fcac321e24ebf4 100644 (file)
@@ -41,9 +41,10 @@ $x->delete_property($root, $_NET_CURRENT_DESKTOP);
 
 $x->flush();
 
+# Returns the _NET_CURRENT_DESKTOP property from the root window. This is
+# the 0 based index of the current desktop.
 sub current_desktop_index {
-    # Returns the _NET_CURRENT_DESKTOP property from the root window. This is
-    # the 0 based index of the current desktop.
+    sync_with_i3;
 
     my $cookie = $x->get_property(0, $root, $_NET_CURRENT_DESKTOP,
                                   $CARDINAL, 0, 1);