extract_workspace_names_from_bindings: handle optional flags
fixes #3527
This commit is contained in:
@ -125,4 +125,22 @@ is_deeply(\@names, [ '3' ], 'i3 starts on workspace 3');
|
||||
|
||||
exit_gracefully($pid);
|
||||
|
||||
##############################################################
|
||||
# 7: verify optional flags do 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 --no-auto-back-and-forth number 3:three
|
||||
EOT
|
||||
|
||||
$pid = launch_with_config($config);
|
||||
|
||||
@names = @{get_workspace_names()};
|
||||
is_deeply(\@names, [ '3:three' ], 'i3 starts on named workspace 3:three');
|
||||
|
||||
exit_gracefully($pid);
|
||||
|
||||
done_testing;
|
||||
|
Reference in New Issue
Block a user