summaryrefslogtreecommitdiffstats
path: root/cmd-queue.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-13 13:42:35 +0000
committernicm <nicm>2020-04-13 13:42:35 +0000
commit77d5b0cc538138fd036dca0f9b2ba198a94c009d (patch)
treed45462362e56f236d72f3dec9a470ce97b6f3c4a /cmd-queue.c
parent53d6b94e8aef09c0494ed8a53191063b605b3127 (diff)
Store a key event not a mouse event in the shared data.
Diffstat (limited to 'cmd-queue.c')
-rw-r--r--cmd-queue.c7
1 files changed, 5 insertions, 2 deletions
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;
}