Activate the focused child when scrolling over tab/stack decorations

fbce834b introduced a bug where scrolling over the decoration while
another container is focused would not focus the tabbed/stacked
container itself, but would instead move focus through the currently
focused container.
This commit is contained in:
Dan Elkouby
2018-05-05 13:30:48 +03:00
parent d302af2312
commit 94bc401680
2 changed files with 7 additions and 1 deletions

View File

@ -53,7 +53,7 @@ open_window;
cmd 'splitv';
my $last = open_window;
# Second child of the outer horizontal split, next to the tabbed one.
open_window;
my $outside = open_window;
cmd 'move right, move right';
cmd '[id=' . $first->id . '] focus';
@ -76,4 +76,9 @@ is($x->input_focus, $first->id, 'First window focused through scrolling');
scroll_up;
is($x->input_focus, $first->id, 'Scrolling again doesn\'t focus the whole sibling');
# Try scrolling with another window focused
cmd '[id=' . $outside->id . '] focus';
scroll_up;
is($x->input_focus, $first->id, 'Scrolling from outside the tabbed container works');
done_testing;