diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-11-20 16:51:46 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-11-20 16:51:46 +0100 |
commit | 782e5d0f60412682ca5facde2d566c02bd176902 (patch) | |
tree | bae713edac0b623e9934bc2e4910ae33e8b919c9 /src/actions.c | |
parent | 2335261cdf8c574331b676c74e9d5299faa82624 (diff) | |
download | ratpoison-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.c | 5 |
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); |