#!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 reconfiguration of dock clients. # Ticket: #1883 use i3test i3_config => < $x->atom(name => '_NET_WM_WINDOW_TYPE_DOCK') }); $rect = $window->rect; is($rect->x, 0, 'sanity check: dock client is on the left screen'); $window->rect(X11::XCB::Rect->new(x => 1024, y => 0, width => 1024, height => 30)); sync_with_i3; @docks = get_dock_clients; is(@docks, 1, 'there is still exactly one dock'); is($docks[0]->{rect}->{x}, 1024, 'dock client has moved to the other screen'); ############################################################################### done_testing;