]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/294-focus-order.t
tree_move: Don't change focus order when swapping containers
[i3/i3] / testcases / t / 294-focus-order.t
index b5d3514abbfbdd7d2eb8ba0bb92cc7fa81489695..6b16540c85d68e17285969962687ac6ea17e8867 100644 (file)
@@ -125,6 +125,22 @@ $windows[0] = open_window;
 cmd '[id=' . $windows[3]->id . '] move right';
 confirm_focus('unfocused move from other output');
 
+#####################################################################
+# Test that moving an unfocused container inside its original parent
+# maintains the correct focus order.
+#####################################################################
+
+fresh_workspace;
+$windows[0] = open_window;
+$windows[1] = open_window;
+cmd 'split v';
+$windows[2] = open_window;
+$windows[3] = open_window;
+focus_windows;
+
+cmd '[id=' . $windows[2]->id . '] move up';
+confirm_focus('split-v + unfocused move inside parent');
+
 ######################################################################
 # Test that moving an unfocused container maintains the correct focus
 # order.