Skip to content

Commit

Permalink
Fix "--" bindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
domivogt committed Mar 1, 2017
1 parent 47e634b commit d89af5d
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions fvwm/bindings.c
Expand Up @@ -481,33 +481,33 @@ static int ParseBinding(
{
action = SkipSpaces(action, NULL, 0);
}
if (action != NULL)
{
is_pass_through = is_pass_through_action(action);
}
if (
action == NULL || *action == 0 ||
(action[0] == '-' && !is_pass_through))
{
is_unbind_request = True;
}
else
else if (is_pass_through)
{
is_pass_through = is_pass_through_action(action);
if (is_pass_through)
/* pass-through actions indicate that the event be
* allowed to pass through to the underlying window. */
if (window_name == NULL)
{
/* pass-through actions indicate that the event be
* allowed to pass through to the underlying window. */
if (window_name == NULL)
/* It doesn't make sense to have a pass-through
* action on global bindings. */
if (!is_silent)
{
/* It doesn't make sense to have a pass-through
* action on global bindings. */
if (!is_silent)
{
fvwm_msg(
ERR, "ParseBinding",
"Invalid action for global "
"binding: %s", tline);
}

return 0;
fvwm_msg(
ERR, "ParseBinding",
"Invalid action for global "
"binding: %s", tline);
}

return 0;
}
}

Expand Down

0 comments on commit d89af5d

Please sign in to comment.