diff options
author | nicm <nicm> | 2020-04-13 14:46:04 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-13 14:46:04 +0000 |
commit | adb76fd1ce8753a958d4ffe14db724f9f4d674ea (patch) | |
tree | 7d724330c7347975fa1546b99b55a145ee5f2be3 /key-bindings.c | |
parent | 9a65102bfc2ed5d1e1f41e47451b8296c84f133d (diff) | |
download | rtmux-adb76fd1ce8753a958d4ffe14db724f9f4d674ea.tar.gz rtmux-adb76fd1ce8753a958d4ffe14db724f9f4d674ea.tar.bz2 rtmux-adb76fd1ce8753a958d4ffe14db724f9f4d674ea.zip |
Move cmdq_state into cmd-queue.c.
Diffstat (limited to 'key-bindings.c')
-rw-r--r-- | key-bindings.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/key-bindings.c b/key-bindings.c index 04a5cef7..13caa889 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -535,10 +535,10 @@ key_bindings_read_only(struct cmdq_item *item, __unused void *data) struct cmdq_item * key_bindings_dispatch(struct key_binding *bd, struct cmdq_item *item, - struct client *c, struct mouse_event *m, struct cmd_find_state *fs) + struct client *c, struct key_event *event, struct cmd_find_state *fs) { struct cmdq_item *new_item; - int readonly; + int readonly, flags = 0; if (c == NULL || (~c->flags & CLIENT_READONLY)) readonly = 1; @@ -547,9 +547,9 @@ key_bindings_dispatch(struct key_binding *bd, struct cmdq_item *item, if (!readonly) new_item = cmdq_get_callback(key_bindings_read_only, NULL); else { - new_item = cmdq_get_command(bd->cmdlist, fs, m, 0); if (bd->flags & KEY_BINDING_REPEAT) - cmdq_get_state(new_item)->flags |= CMDQ_STATE_REPEAT; + flags |= CMDQ_STATE_REPEAT; + new_item = cmdq_get_command(bd->cmdlist, fs, event, flags); } if (item != NULL) new_item = cmdq_insert_after(item, new_item); |