cmd_focus_sibling: Fix crash on workspace level

Fixes #3997
This commit is contained in:
Orestis Floros
2020-04-09 11:29:14 +02:00
parent 016d4a3f45
commit 4b4f1f604f
2 changed files with 22 additions and 1 deletions

View File

@ -69,4 +69,16 @@ cmp_tree(
cmd 'focus parent, focus next sibling';
});
# See #3997
cmd 'workspace 2';
open_window;
cmd 'workspace 1';
open_window;
cmd 'focus parent, focus parent, focus next sibling, focus prev sibling';
does_i3_live;
is(focused_ws, '1', 'Back and forth between workspaces');
cmd 'focus parent, focus parent, focus next sibling';
is(focused_ws, '2', "Workspace 2 focused with 'focus next sibling'");
done_testing;