From 77d5b0cc538138fd036dca0f9b2ba198a94c009d Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 13 Apr 2020 13:42:35 +0000 Subject: Store a key event not a mouse event in the shared data. --- cmd-queue.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cmd-queue.c') diff --git a/cmd-queue.c b/cmd-queue.c index aecb7734..7e1788cc 100644 --- a/cmd-queue.c +++ b/cmd-queue.c @@ -333,8 +333,11 @@ cmdq_get_command(struct cmd_list *cmdlist, struct cmd_find_state *current, cmd_find_copy_state(&shared->current, current); else cmd_find_clear_state(&shared->current, 0); - if (m != NULL) - memcpy(&shared->mouse, m, sizeof shared->mouse); + if (m != NULL) { + shared->event.key = KEYC_NONE; + memcpy(&shared->event.m, m, + sizeof shared->event.m); + } shared->flags = flags; last_group = group; } -- cgit v1.2.3