diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-04-13 18:01:43 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-04-13 18:01:43 +0100 |
commit | acc00cd13a767067f85ed27d52ad543c9a58869c (patch) | |
tree | 924a72d2029f32a3fb2b544bbc295b7e19bd197e /popup.c | |
parent | 0a11f1607b9f3623dce287d4940bb925b533a340 (diff) | |
parent | 34804f2709a16dca45dc072fb53d03f79db61e51 (diff) | |
download | rtmux-acc00cd13a767067f85ed27d52ad543c9a58869c.tar.gz rtmux-acc00cd13a767067f85ed27d52ad543c9a58869c.tar.bz2 rtmux-acc00cd13a767067f85ed27d52ad543c9a58869c.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'popup.c')
-rw-r--r-- | popup.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -223,6 +223,7 @@ popup_key_cb(struct client *c, struct key_event *event) struct mouse_event *m = &event->m; struct cmd_find_state *fs = &pd->fs; struct cmdq_item *new_item; + struct cmdq_state *new_state; struct cmd_parse_result *pr; struct format_tree *ft; const char *cmd, *buf; @@ -305,10 +306,12 @@ popup_key_cb(struct client *c, struct key_event *event) break; case CMD_PARSE_SUCCESS: if (pd->item != NULL) - m = &cmdq_get_state(pd->item)->event.m; + event = cmdq_get_event(pd->item); else - m = NULL; - new_item = cmdq_get_command(pr->cmdlist, fs, m, 0); + event = NULL; + new_state = cmdq_new_state(&pd->fs, event, 0); + new_item = cmdq_get_command(pr->cmdlist, new_state); + cmdq_free_state(new_state); cmd_list_free(pr->cmdlist); cmdq_append(c, new_item); break; |