#!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) # # Verifies that you can assign a window _and_ use for_window with a move # command. # Ticket: #909 # Bug still in: 4.4-69-g6856b23 use i3test i3_autostart => 0; my $config = < '__i3-test-window', dont_map => 1, ); $window->map; does_i3_live; exit_gracefully($pid); ################################################################################ # Related bug: multiple for_window assignments caused a crash ################################################################################ $config = < '__i3-test-window1', dont_map => 1, ); $window1->map; my $window2 = open_window( wm_class => '__i3-test-window2', dont_map => 1, ); $window2->map; does_i3_live; exit_gracefully($pid); done_testing;