2 # vim:ts=4:sw=4:expandtab
3 # Checks if the focus is correctly restored, when creating a floating client
4 # over an unfocused tiling client and destroying the floating one again.
11 my $tiled_left = open_window;
12 my $tiled_right = open_window;
14 # Get input focus before creating the floating window
15 my $focus = $x->input_focus;
17 # Create a floating window which is smaller than the minimum enforced size of i3
18 my $window = open_floating_window;
20 is($x->input_focus, $window->id, 'floating window focused');
24 wait_for_unmap $window;
26 is($x->input_focus, $focus, 'Focus correctly restored');