Use open_floating_window arguments for rect

This commit is contained in:
Orestis Floros 2018-10-10 15:26:04 +03:00
parent 8c17e4e38d
commit 36a972d851
No known key found for this signature in database
GPG Key ID: E9AD9F32E401E38F
1 changed files with 2 additions and 5 deletions

View File

@ -67,11 +67,8 @@ my $tmp = fresh_workspace;
my ($first_floating, $second_floating); my ($first_floating, $second_floating);
synced_warp_pointer(0, 0); synced_warp_pointer(0, 0);
$first_floating = open_floating_window; $first_floating = open_floating_window(rect => [ 1, 1, 100, 100 ]);
$first_floating->rect(X11::XCB::Rect->new(x => 1, y => 1, width => 100, height => 100)); $second_floating = open_floating_window(rect => [ 50, 50, 100, 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 = open_window; $first = open_window;
is($x->input_focus, $first->id, 'first (tiling) window focused'); is($x->input_focus, $first->id, 'first (tiling) window focused');