X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=testcases%2Ft%2F296-regress-focus-behind-fullscreen-floating.t;fp=testcases%2Ft%2F296-regress-focus-behind-fullscreen-floating.t;h=0867f082bb2af98d4a8df6f623b49a49ae767760;hp=0000000000000000000000000000000000000000;hb=1847938d4eeba98260cc79ca45a11a134274c2ea;hpb=c54f5008395b10c046f380cc3069ff779e5d2877 diff --git a/testcases/t/296-regress-focus-behind-fullscreen-floating.t b/testcases/t/296-regress-focus-behind-fullscreen-floating.t new file mode 100644 index 00000000..0867f082 --- /dev/null +++ b/testcases/t/296-regress-focus-behind-fullscreen-floating.t @@ -0,0 +1,40 @@ +#!perl +# vim:ts=4:sw=4:expandtab +# +# Please read the following documents before working on tests: +# • https://build.i3wm.org/docs/testsuite.html +# (or docs/testsuite) +# +# • https://build.i3wm.org/docs/lib-i3test.html +# (alternatively: perldoc ./testcases/lib/i3test.pm) +# +# • https://build.i3wm.org/docs/ipc.html +# (or docs/ipc) +# +# • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf +# (unless you are already familiar with Perl) +# +# Test that directional focus gives focus to floating fullscreen containers when +# switching workspaces. +# Ticket: #3201 +# Bug still in: 4.15-59-gb849fe3e +use i3test i3_config => < 0); +my $ws = fresh_workspace(output => 1); +open_window; +open_floating_window; +cmd 'fullscreen enable'; +my $expected_focus = get_focused($ws); + +cmd 'focus left'; +cmd 'focus right'; + +is (get_focused($ws), $expected_focus, 'floating fullscreen window focused after directional focus'); + +done_testing;