testcases: use $x in wait_for_(un)map change to wait_for_(un)map($win)
wait_for_unmap currently ignores its $window parameter, since X11::XCB doesn't provide $event->{window} for unmap events yet.
This commit is contained in:
committed by
Michael Stapelberg
parent
65471a6b18
commit
da403b3667
@ -18,7 +18,7 @@ isa_ok($window, 'X11::XCB::Window');
|
||||
|
||||
$window->map;
|
||||
|
||||
wait_for_map $x;
|
||||
wait_for_map $window;
|
||||
|
||||
my ($absolute, $top) = $window->rect;
|
||||
|
||||
@ -42,7 +42,7 @@ isa_ok($window, 'X11::XCB::Window');
|
||||
|
||||
$window->map;
|
||||
|
||||
wait_for_map $x;
|
||||
wait_for_map $window;
|
||||
|
||||
($absolute, $top) = $window->rect;
|
||||
|
||||
@ -73,10 +73,11 @@ isa_ok($window, 'X11::XCB::Window');
|
||||
|
||||
$window->map;
|
||||
|
||||
wait_for_map $x;
|
||||
wait_for_map $window;
|
||||
|
||||
cmd 'floating enable';
|
||||
|
||||
# XXX potentionally racy
|
||||
($absolute, $top) = $window->rect;
|
||||
|
||||
cmp_ok($absolute->{width}, '==', 80, "i3 let the width at 80");
|
||||
|
Reference in New Issue
Block a user