From a1823e59fffb9b25fe3cbb86d025203feb8f7d79 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 6 Sep 2012 18:11:16 +0200 Subject: [PATCH] =?utf8?q?don=E2=80=99t=20errnously=20detect=20--release?= =?utf8?q?=20bindings=20as=20duplicates?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cfgparse.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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", -- 2.39.2