don’t errnously detect --release bindings as duplicates

This commit is contained in:
Michael Stapelberg 2012-09-06 18:11:16 +02:00
parent 4186827386
commit a1823e59ff
1 changed files with 3 additions and 1 deletions

View File

@ -431,8 +431,10 @@ static void check_for_duplicate_bindings(struct context *context) {
/* Check if the keycodes or modifiers are different. If so, they
* can't be duplicate */
if (bind->keycode != current->keycode ||
bind->mods != current->mods)
bind->mods != current->mods ||
bind->release != current->release)
continue;
context->has_errors = true;
if (current->keycode != 0) {
ELOG("Duplicate keybinding in config file:\n modmask %d with keycode %d, command \"%s\"\n",