From 782e5d0f60412682ca5facde2d566c02bd176902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Courr=C3=A8ges-Anglas?= Date: Wed, 20 Nov 2013 16:51:46 +0100 Subject: In cmd_meta, don't pass stack garbage to XSendEvent. * zero out the whole struct and explicitely assign CurrentTime (OL) to ev.xkey.time. This should please Firefox when using C-t t. --- src/actions.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); -- cgit v1.2.3