From: Michael Stapelberg Date: Thu, 6 Sep 2012 16:11:16 +0000 (+0200) Subject: don’t errnously detect --release bindings as duplicates X-Git-Tag: 4.3~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a1823e59fffb9b25fe3cbb86d025203feb8f7d79;p=i3%2Fi3 don’t errnously detect --release bindings as duplicates --- diff --git a/src/cfgparse.y b/src/cfgparse.y index f175c720..29c519f0 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -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",