X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=testcases%2Ft%2F293-focus-follows-mouse.t;fp=testcases%2Ft%2F293-focus-follows-mouse.t;h=55958c3ea3b8bd218f35a2f29e3f3af9130448a4;hp=0cd6e5c3228f72d405237eb4a55ba6d7351f05c6;hb=1847938d4eeba98260cc79ca45a11a134274c2ea;hpb=c54f5008395b10c046f380cc3069ff779e5d2877 diff --git a/testcases/t/293-focus-follows-mouse.t b/testcases/t/293-focus-follows-mouse.t index 0cd6e5c3..55958c3e 100644 --- a/testcases/t/293-focus-follows-mouse.t +++ b/testcases/t/293-focus-follows-mouse.t @@ -67,11 +67,8 @@ my $tmp = fresh_workspace; my ($first_floating, $second_floating); synced_warp_pointer(0, 0); -$first_floating = open_floating_window; -$first_floating->rect(X11::XCB::Rect->new(x => 1, y => 1, width => 100, height => 100)); -$second_floating = open_floating_window; -$second_floating->rect(X11::XCB::Rect->new(x => 50, y => 50, width => 100, height => 100)); -sync_with_i3; +$first_floating = open_floating_window(rect => [ 1, 1, 100, 100 ]); +$second_floating = open_floating_window(rect => [ 50, 50, 100, 100 ]); $first = open_window; is($x->input_focus, $first->id, 'first (tiling) window focused');