Fix --release bindings broken by previous commit

fixes #2559
This commit is contained in:
Michael Stapelberg
2017-05-23 08:28:56 +02:00
parent 36f80f2de8
commit 2bd3639fbb
2 changed files with 47 additions and 2 deletions

View File

@ -274,7 +274,9 @@ static Binding *get_binding(i3_event_state_mask_t state_filtered, bool is_releas
break;
}
}
if (!found_keycode) {
if (!found_keycode &&
(bind->release != B_UPON_KEYRELEASE_IGNORE_MODS ||
!is_release)) {
continue;
}
}