summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/actions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c
index 5f6c013..6a3e1db 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -1167,6 +1167,11 @@ cmd_meta (int interactive UNUSED, struct cmdarg **args)
struct rp_key key;
XEvent ev;
+ memset(&ev, 0, sizeof(ev));
+ /* Redundant with the line above, but points out that passing some
+ garbage time value trips up some clients */
+ ev.xkey.time = CurrentTime;
+
if (current_window() == NULL)
return cmdret_new (RET_FAILURE, NULL);