action: refactor action()

This commit is contained in:
Johan Malm 2020-09-25 19:37:51 +01:00
parent d15e48269d
commit 745915c0ba
3 changed files with 10 additions and 10 deletions

View file

@ -30,7 +30,7 @@ static bool handle_keybinding(struct server *server, uint32_t modifiers,
continue;
for (size_t i = 0; i < keybind->keysyms_len; i++) {
if (sym == keybind->keysyms[i]) {
action(server, keybind);
action(server, keybind->action, keybind->command);
return true;
}
}