t/*ewmh*: fix flakiness by syncing

This commit is contained in:
Michael Stapelberg 2014-08-08 12:22:41 +02:00
parent 034c82c0ac
commit 294d52e018
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,9 @@
use i3test; use i3test;
sub get_desktop_names { sub get_desktop_names {
# Make sure that i3 pushed its changes to X11 before querying.
sync_with_i3;
my $cookie = $x->get_property( my $cookie = $x->get_property(
0, 0,
$x->get_root_window(), $x->get_root_window(),

View File

@ -33,6 +33,9 @@ EOT
my $pid = launch_with_config($config); my $pid = launch_with_config($config);
sub get_desktop_viewport { sub get_desktop_viewport {
# Make sure that i3 pushed its changes to X11 before querying.
sync_with_i3;
my $cookie = $x->get_property( my $cookie = $x->get_property(
0, 0,
$x->get_root_window(), $x->get_root_window(),