]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/100-fullscreen.t
Merge branch 'master' into next
[i3/i3] / testcases / t / 100-fullscreen.t
index cc893adc3723a1b9e2aca6cfe71bd20286672141..f8fc92a24aee749c58bbd58d31c3383e6a3d8e86 100644 (file)
@@ -156,4 +156,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;