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.
8 my $x = X11::XCB::Connection->new;
13 my $tiled_left = open_window($x);
14 my $tiled_right = open_window($x);
16 # Get input focus before creating the floating window
17 my $focus = $x->input_focus;
19 # Create a floating window which is smaller than the minimum enforced size of i3
20 my $window = open_floating_window($x);
22 is($x->input_focus, $window->id, 'floating window focused');
28 is($x->input_focus, $focus, 'Focus correctly restored');