Merge branch 'master' into next
This commit is contained in:
commit
a0228b0333
|
@ -270,6 +270,8 @@ state FONT:
|
|||
|
||||
# bindsym/bindcode
|
||||
state BINDING:
|
||||
release = '--release'
|
||||
->
|
||||
modifiers = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Shift', 'Control', 'Ctrl', 'Mode_switch'
|
||||
->
|
||||
'+'
|
||||
|
@ -313,6 +315,8 @@ state MODE_IGNORE_LINE:
|
|||
-> MODE
|
||||
|
||||
state MODE_BINDING:
|
||||
release = '--release'
|
||||
->
|
||||
modifiers = 'Mod1', 'Mod2', 'Mod3', 'Mod4', 'Mod5', 'Shift', 'Control', 'Ctrl', 'Mode_switch'
|
||||
->
|
||||
'+'
|
||||
|
|
|
@ -397,7 +397,7 @@ static void _workspace_show(Con *workspace) {
|
|||
* the corresponding workspace is cleaned up.
|
||||
* NOTE: Internal cons such as __i3_scratch (when a scratchpad window is
|
||||
* focused) are skipped, see bug #868. */
|
||||
if (current && !con_is_internal(current)) {
|
||||
if (current && !(current->name[0] == '_' && current->name[1] == '_')) {
|
||||
FREE(previous_workspace_name);
|
||||
if (current) {
|
||||
previous_workspace_name = sstrdup(current->name);
|
||||
|
|
|
@ -44,6 +44,7 @@ my $config = <<'EOT';
|
|||
mode "meh" {
|
||||
bindsym Mod1 + Shift + x resize grow
|
||||
bindcode Mod1+44 resize shrink
|
||||
bindsym --release Mod1+x exec foo
|
||||
}
|
||||
EOT
|
||||
|
||||
|
@ -51,6 +52,7 @@ my $expected = <<'EOT';
|
|||
cfg_enter_mode(meh)
|
||||
cfg_mode_binding(bindsym, Mod1,Shift, x, (null), resize grow)
|
||||
cfg_mode_binding(bindcode, Mod1, 44, (null), resize shrink)
|
||||
cfg_mode_binding(bindsym, Mod1, x, --release, exec foo)
|
||||
EOT
|
||||
|
||||
is(parser_calls($config),
|
||||
|
|
Loading…
Reference in New Issue