# vim:ts=4:sw=4:expandtab
#
# Please read the following documents before working on tests:
-# • http://build.i3wm.org/docs/testsuite.html
+# • https://build.i3wm.org/docs/testsuite.html
# (or docs/testsuite)
#
-# • http://build.i3wm.org/docs/lib-i3test.html
+# • https://build.i3wm.org/docs/lib-i3test.html
# (alternatively: perldoc ./testcases/lib/i3test.pm)
#
-# • http://build.i3wm.org/docs/ipc.html
+# • https://build.i3wm.org/docs/ipc.html
# (or docs/ipc)
#
# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
my $i3 = i3(get_socket_path(0));
+ sync_with_i3;
$x->root->warp_pointer(0, 0);
sync_with_i3;
is($x->input_focus, $right_win->id, 'right window focused (wrapping)');
############################################################################
- # Ensure that moving down from S0 doesn’t crash i3.
+ # Ensure that moving down/up from S0 doesn’t crash i3 and is a no-op.
############################################################################
my $second = fresh_workspace(output => 1);
+ my $third_win = open_window;
cmd "focus output down";
+ is($x->input_focus, $third_win->id, 'right window still focused');
+
+ cmd "focus output up";
+ is($x->input_focus, $third_win->id, 'right window still focused');
does_i3_live;
my $i3 = i3(get_socket_path(0));
+sync_with_i3;
$x->root->warp_pointer(0, 0);
sync_with_i3;