# We move the pointer out of our way to avoid a bug where the focus will
# be set to the window under the cursor
+sync_with_i3;
$x->root->warp_pointer(0, 0);
sync_with_i3;
cmd 'fullscreen';
# Focus screen 1
+sync_with_i3;
$x->root->warp_pointer(1025, 0);
sync_with_i3;
my $diff_ws = open_window;
# Focus screen 0
+sync_with_i3;
$x->root->warp_pointer(0, 0);
sync_with_i3;
return $output->{name};
}
+sync_with_i3;
$x->root->warp_pointer(0, 0);
sync_with_i3;
# Setup workspaces so that they stay open (with an empty container).
################################################################################
+sync_with_i3;
$x->root->warp_pointer(0, 0);
sync_with_i3;
my $i3 = i3(get_socket_path());
+sync_with_i3;
$x->root->warp_pointer(0, 0);
sync_with_i3;
# now on the right output (1024x768)
################################################################################
+sync_with_i3;
$x->root->warp_pointer(683 + 10, 0);
sync_with_i3;
my $i3 = i3(get_socket_path(0));
+ sync_with_i3;
$x->root->warp_pointer(0, 0);
sync_with_i3;
my $i3 = i3(get_socket_path(0));
+sync_with_i3;
$x->root->warp_pointer(0, 0);
sync_with_i3;
cmd 'floating toggle';
# Focus screen 1
+sync_with_i3;
$x->root->warp_pointer(1025, 0);
sync_with_i3;
my $s1_ws = fresh_workspace;
my $fourth = open_window;
# Focus screen 2
+sync_with_i3;
$x->root->warp_pointer(0, 769);
sync_with_i3;
my $s2_ws = fresh_workspace;
my $fifth = open_window;
# Focus screen 3
+sync_with_i3;
$x->root->warp_pointer(1025, 769);
sync_with_i3;
my $s3_ws = fresh_workspace;