]> git.sur5r.net Git - i3/i3/commitdiff
don’t errnously detect --release bindings as duplicates
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 6 Sep 2012 16:11:16 +0000 (18:11 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 6 Sep 2012 16:11:16 +0000 (18:11 +0200)
src/cfgparse.y

index f175c720e5b96bf36e85de7c38380f58e9d769fe..29c519f0469f3aa6544993cb5701a9a8499e5759 100644 (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",