Con *current = con_get_workspace(focused);
Con *prev = NULL;
Con *output = con_get_output(focused);
+ DLOG("output = %s\n", output->name);
if (current->num == -1) {
/* If named workspace, find previous named workspace. */
return $output->{name};
}
+$x->root->warp_pointer(0, 0);
+sync_with_i3;
+
is(focused_output, 'fake-0', 'focus on first output');
cmd 'focus output right';
# Setup workspaces so that they stay open (with an empty container).
################################################################################
+$x->root->warp_pointer(0, 0);
+sync_with_i3;
+
is(focused_ws, '1', 'starting on workspace 1');
# ensure workspace 1 stays open
open_window;
cmd 'workspace 2';
+# XXX: This is to avoid EnterNotifies changing the focus. Not sure why they
+# appear sometimes in the first place. Only happens when running the full
+# testsuite.
+$x->root->warp_pointer(1025, 0);
+sync_with_i3;
+
cmd 'workspace prev_on_output';
is(focused_ws, '2', 'workspace 2 focused');