]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/100-fullscreen.t
testcases: use $x in wait_for_(un)map change to wait_for_(un)map($win)
[i3/i3] / testcases / t / 100-fullscreen.t
index e014da485f92bb5793c898f9aab951e0e6bf19ed..f5fb66932d3f66c246fc7d706ec1925da3a3f177 100644 (file)
@@ -45,7 +45,7 @@ is_deeply($window->rect, $original_rect, "rect unmodified before mapping");
 
 $window->map;
 
-wait_for_map $x;
+wait_for_map $window;
 
 # open another container to make the window get only half of the screen
 cmd 'open';
@@ -95,7 +95,7 @@ is_deeply($window->rect, $original_rect, "rect unmodified before mapping");
 $window->fullscreen(1);
 $window->map;
 
-wait_for_map $x;
+wait_for_map $window;
 
 $new_rect = $window->rect;
 ok(!eq_deeply($new_rect, $original_rect), "Window got repositioned after fullscreen");