src/config/rcxml.c: allow clearing key/mouse bindings

Fixes #567
This commit is contained in:
Consolatis 2023-01-29 04:06:46 +01:00
parent 14a0c83ae0
commit 4a8b50603e
9 changed files with 115 additions and 18 deletions

View file

@ -81,7 +81,7 @@ static bool
handle_keybinding(struct server *server, uint32_t modifiers, xkb_keysym_t sym)
{
struct keybind *keybind;
wl_list_for_each_reverse(keybind, &rc.keybinds, link) {
wl_list_for_each(keybind, &rc.keybinds, link) {
if (modifiers ^ keybind->modifiers) {
continue;
}