NULL
};
+extern struct keybind *cur_keybind;
+
void
action_arg_add_str(struct action *action, const char *key, const char *value)
{
return;
}
+ cur_keybind = NULL;
+
struct view *view;
struct action *action;
wl_list_for_each(action, actions, link) {
static bool should_cancel_cycling_on_next_key_release;
-static struct keybind *cur_keybind;
+struct keybind *cur_keybind;
/* Called on --reconfigure to prevent segfault when handling release keybinds */
void
return true;
}
actions_run(NULL, server, &cur_keybind->actions, 0);
- cur_keybind = NULL;
return true;
} else {
return handle_key_release(server, event->keycode);
key_state_store_pressed_key_as_bound(event->keycode);
if (!cur_keybind->on_release) {
actions_run(NULL, server, &cur_keybind->actions, 0);
- /* This cancels any pending on-release keybinds */
- cur_keybind = NULL;
}
return true;
}