summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-11-20 16:51:46 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-11-20 16:51:46 +0100
commit782e5d0f60412682ca5facde2d566c02bd176902 (patch)
treebae713edac0b623e9934bc2e4910ae33e8b919c9 /src/actions.c
parent2335261cdf8c574331b676c74e9d5299faa82624 (diff)
downloadratpoison-782e5d0f60412682ca5facde2d566c02bd176902.zip
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.
Diffstat (limited to 'src/actions.c')
-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);