]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/153-floating-originalsize.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 153-floating-originalsize.t
index db0b6e9c63649bab76d70e31bc45b42dee62b9f2..83f3e85d58bf7cac5d9fe823d0c6ed07b57bda1c 100644 (file)
@@ -3,15 +3,12 @@
 #
 # Test if the requested width/height is set after making the window floating.
 #
-use X11::XCB qw(:all);
 use i3test;
 
 my $tmp = fresh_workspace;
 
-my $x = X11::XCB::Connection->new;
-
 # Create a floating window which is smaller than the minimum enforced size of i3
-my $window = open_window($x, { rect => [ 0, 0, 400, 150 ] });
+my $window = open_window({ rect => [ 0, 0, 400, 150 ] });
 
 my ($absolute, $top) = $window->rect;
 
@@ -20,7 +17,7 @@ cmp_ok($absolute->{width}, '>', 400, 'i3 raised the width');
 cmp_ok($absolute->{height}, '>', 150, 'i3 raised the height');
 
 cmd 'floating toggle';
-sync_with_i3($x);
+sync_with_i3;
 
 ($absolute, $top) = $window->rect;