]> git.sur5r.net Git - i3/i3/blob - testcases/t/292-regress-layout-toggle.t
Update ewmh focused only when new focus is different (#3496)
[i3/i3] / testcases / t / 292-regress-layout-toggle.t
1 #!perl
2 # vim:ts=4:sw=4:expandtab
3 #
4 # Please read the following documents before working on tests:
5 # • https://build.i3wm.org/docs/testsuite.html
6 #   (or docs/testsuite)
7 #
8 # • https://build.i3wm.org/docs/lib-i3test.html
9 #   (alternatively: perldoc ./testcases/lib/i3test.pm)
10 #
11 # • https://build.i3wm.org/docs/ipc.html
12 #   (or docs/ipc)
13 #
14 # • http://onyxneon.com/books/modern_perl/modern_perl_a4.pdf
15 #   (unless you are already familiar with Perl)
16 #
17 # Regression test: verify layout toggle with invalid parameters does not set
18 # layout to L_DEFAULT, which crashes i3 upon the next IPC message.
19 # Ticket: #2903
20 # Bug still in: 4.14-87-g607e97e6
21 use i3test;
22
23 cmd 'layout toggle 1337 1337';
24
25 fresh_workspace;
26
27 does_i3_live;
28
29 done_testing;