Respect focus_on_window_activation for ConfigureRequests (#2889)

fixes #2873
This commit is contained in:
Michael Stapelberg
2017-08-28 12:07:56 +02:00
committed by GitHub
parent f41ae5a88f
commit 4dca8e6e0b
2 changed files with 51 additions and 11 deletions

View File

@ -36,4 +36,20 @@ sync_with_i3;
is($x->input_focus, $left_window->id, 'left window has focus');
isnt(get_focused($ws), $old_focus, 'right window is no longer focused');
################################################################################
# Verify the ConfigureWindow request is only applied when on the active
# workspace.
################################################################################
$ws = fresh_workspace;
my $new_window = open_window;
is($x->input_focus, $new_window->id, 'new window has focus');
$x->configure_window($left_window->id, CONFIG_WINDOW_STACK_MODE, (STACK_MODE_ABOVE));
$x->flush;
sync_with_i3;
is($x->input_focus, $new_window->id, 'new window still has focus');
done_testing;