2 # vim:ts=4:sw=4:expandtab
4 # Please read the following documents before working on tests:
5 # • http://build.i3wm.org/docs/testsuite.html
8 # • http://build.i3wm.org/docs/lib-i3test.html
9 # (alternatively: perldoc ./testcases/lib/i3test.pm)
11 # • http://build.i3wm.org/docs/ipc.html
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 # (unless you are already familiar with Perl)
17 # Verifies that mouse bindings work on the root window if
18 # --whole-window is set.
20 use i3test i3_autostart => 0;
25 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
27 workspace_auto_back_and_forth no
28 bindsym --whole-window button4 workspace special
31 my $pid = launch_with_config($config);
34 xtest_button_press(4, 50, 50);
35 xtest_button_release(4, 50, 50);
38 is(focused_ws(), 'special', 'the binding was triggered');
40 exit_gracefully($pid);