X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=testcases%2Flib%2Fi3test.pm;h=d1a17865eb877146e0c4a24bbcc61156b85e0e6b;hb=0702f1fb7befbeae5914f2b1cb6b27d8809ae36b;hp=d3d8ad04576fc4456f09d4d0a4296e29a2f144fd;hpb=293517fb2ef7036b7df2e5ea64db5c9b6b268766;p=i3%2Fi3 diff --git a/testcases/lib/i3test.pm b/testcases/lib/i3test.pm index d3d8ad04..d1a17865 100644 --- a/testcases/lib/i3test.pm +++ b/testcases/lib/i3test.pm @@ -139,7 +139,7 @@ sub wait_for_unmap { wait_for_event 2, sub { $_[0]->{response_type} == UNMAP_NOTIFY # and $_[0]->{window} == $id }; - sync_with_i3($x); + sync_with_i3(); } # @@ -174,7 +174,7 @@ sub open_window { $window->map; wait_for_map($window); # We sync with i3 here to make sure $x->input_focus is updated. - sync_with_i3($x); + sync_with_i3(); return $window; } @@ -325,8 +325,6 @@ sub focused_ws { # See also docs/testsuite for a long explanation # sub sync_with_i3 { - my ($x) = @_; - # Since we need a (mapped) window for receiving a ClientMessage, we create # one on the first call of sync_with_i3. It will be re-used in all # subsequent calls. @@ -470,7 +468,7 @@ use parent 'X11::XCB::Connection'; sub input_focus { my $self = shift; - i3test::sync_with_i3($self); + i3test::sync_with_i3(); return $self->SUPER::input_focus(@_); }