#!perl
# vim:ts=4:sw=4:expandtab
-use Test::More tests => 9;
+use Test::More tests => 10;
use Test::Deep;
use X11::XCB qw(:all);
use Data::Dumper;
my ($absolute, $top) = $window->rect;
-ok($absolute->{width} >= 75, "i3 raised the width to 75");
-ok($absolute->{height} >= 50, "i3 raised the height to 50");
+ok($window->mapped, 'Window is mapped');
+ok($absolute->{width} >= 75, 'i3 raised the width to 75');
+ok($absolute->{height} >= 50, 'i3 raised the height to 50');
-ok($absolute->{x} != 0 && $absolute->{y} != 0, "i3 did not map it to (0x0)");
+ok($absolute->{x} != 0 && $absolute->{y} != 0, 'i3 did not map it to (0x0)');
$window->unmap;
# Checks if the focus is correctly restored, when creating a floating client
# over an unfocused tiling client and destroying the floating one again.
-use Test::More tests => 5;
+use Test::More tests => 6;
use Test::Deep;
use X11::XCB qw(:all);
use Data::Dumper;
$window->map;
sleep(0.25);
+is(X11::XCB::Connection->input_focus, $window->id, 'floating window focused');
$window->unmap;