]> git.sur5r.net Git - i3/i3/blobdiff - testcases/t/172-start-on-named-ws.t
Extract workspace names from bindings before reordering.
[i3/i3] / testcases / t / 172-start-on-named-ws.t
index 8b00abac08569b47f2a583114a4100a49ac26ae2..757a75b4ed5aa1fb5534b75b3934ac444a00d240 100644 (file)
@@ -106,4 +106,23 @@ is_deeply(\@names, [ '3' ], 'i3 starts on workspace 3 without ;exec foo');
 
 exit_gracefully($pid);
 
+################################################################################
+# 6: verify internal binding reordering does not affect startup workspace
+################################################################################
+
+$config = <<EOT;
+# i3 config file (v4)
+font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
+
+bindsym Mod1+1 workspace 3
+bindsym Shift+Mod1+1 workspace 4
+EOT
+
+$pid = launch_with_config($config);
+
+@names = @{get_workspace_names()};
+is_deeply(\@names, [ '3' ], 'i3 starts on workspace 3');
+
+exit_gracefully($pid);
+
 done_testing;