t/*ewmh*: fix flakiness by syncing
This commit is contained in:
parent
034c82c0ac
commit
294d52e018
|
@ -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(),
|
||||||
|
|
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue