]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/251-command-criteria-focused.t
Merge branch 'next' into master
[i3/i3] / testcases / t / 251-command-criteria-focused.t
index 225394f7b6e2237090bddd5240872fcee6b87000..a880f591b72a9028fbd2e1183640ab2d7870173e 100644 (file)
@@ -105,6 +105,16 @@ is(@{get_ws($ws)->{nodes}}, 2, 'sanity check: workspace contains two windows');
 cmd '[workspace=__focused__] move to workspace trash';
 is(@{get_ws($ws)->{nodes}}, 0, '__focused__ works for workspace');
 
+###############################################################################
+# 6: Test that __focused__ in command criteria when no window is focused does
+# not crash i3.
+# See issue: #3406
+###############################################################################
+
+fresh_workspace;
+cmd '[class=__focused__] focus';
+does_i3_live;
+
 ###############################################################################
 
 done_testing;