Bugfix: Disallow focusing other windows when in fullscreen mode (Thanks aksr)

Fixes: #579
This commit is contained in:
Michael Stapelberg
2011-12-17 15:21:43 +00:00
parent d972704205
commit 1ff321bc3f
2 changed files with 46 additions and 0 deletions

View File

@ -169,4 +169,22 @@ is(fullscreen_windows(), 0, 'amount of fullscreen windows after fullscreen comma
# clean up the workspace so that it will be cleaned when switching away
cmd 'kill' for (@{get_ws_content($tmp)});
################################################################################
# Verify that changing focus while in fullscreen does not work.
################################################################################
$tmp = fresh_workspace;
my $other = open_window;
is($x->input_focus, $other->id, 'other window focused');
$window = open_window;
is($x->input_focus, $window->id, 'window focused');
cmd 'fullscreen';
is($x->input_focus, $window->id, 'fullscreen window focused');
cmd 'focus left';
is($x->input_focus, $window->id, 'fullscreen window still focused');
done_testing;