cmd '[id="' . $second->id . '"] focus';
-sync_with_i3;
-
is($x->input_focus, $second->id, 'second con focused');
cmd 'floating enable';
cmd '[id="' . $second->id . '"] focus';
-sync_with_i3;
-
is($x->input_focus, $second->id, 'second con focused');
cmd 'floating enable';
cmd '[id="' . $second->id . '"] focus';
-sync_with_i3;
-
is($x->input_focus, $second->id, 'second con focused');
cmd 'floating enable';
$first = open_window({ background_color => '#ff0000' }); # window 8
$second = open_window({ background_color => '#00ff00' }); # window 9
-sync_with_i3;
-
is($x->input_focus, $second->id, 'second container focused');
cmd 'floating enable';
cmd 'focus tiling';
-sync_with_i3;
-
is($x->input_focus, $first->id, 'first (tiling) container focused');
cmd 'focus floating';
-sync_with_i3;
-
is($x->input_focus, $second->id, 'second (floating) container focused');
cmd 'focus floating';
-sync_with_i3;
-
is($x->input_focus, $second->id, 'second (floating) container still focused');
cmd 'focus mode_toggle';
-sync_with_i3;
-
is($x->input_focus, $first->id, 'first (tiling) container focused');
cmd 'focus mode_toggle';
-sync_with_i3;
-
is($x->input_focus, $second->id, 'second (floating) container focused');
#############################################################################
$second = open_floating_window({ background_color => '#00ff00' }); # window 11
$third = open_floating_window({ background_color => '#0000ff' }); # window 12
-sync_with_i3;
-
is($x->input_focus, $third->id, 'third container focused');
cmd 'focus left';
-sync_with_i3;
-
is($x->input_focus, $second->id, 'second container focused');
cmd 'focus left';
-sync_with_i3;
-
is($x->input_focus, $first->id, 'first container focused');
cmd 'focus left';
-sync_with_i3;
-
is($x->input_focus, $third->id, 'focus wrapped to third container');
cmd 'focus right';
-sync_with_i3;
-
is($x->input_focus, $first->id, 'focus wrapped to first container');
cmd 'focus right';
-sync_with_i3;
-
is($x->input_focus, $second->id, 'focus on second container');
done_testing;
my $first = open_window;
my $second = open_window;
-sync_with_i3;
-
is($x->input_focus, $second->id, 'second window focused');
my @content = @{get_ws_content($tmp)};
ok(@content == 2, 'two containers opened');
$first = open_window;
$second = open_window;
-sync_with_i3;
-
is($x->input_focus, $second->id, 'second window focused');
@content = @{get_ws_content($tmp)};
ok(@content == 1, 'one con at workspace level');