Extract workspace names from bindings before reordering.

fixes #1889
This commit is contained in:
Michael Stapelberg
2015-09-14 09:28:42 +02:00
parent e10b88fb81
commit 840ce51bfd
4 changed files with 74 additions and 19 deletions

View 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;