sxhkd-rc

[fork] simple X hotkey daemon (but for the rc shell)
Log | Files | Refs | README | LICENSE

commit d0a48ef60a302035b68f57dac9013f4bbc0e9b30
parent 56362c66ac4e70676fc59e572e908895205482f7
Author: Bastien Dejean <nihilhill@gmail.com>
Date:   Wed,  9 Jan 2013 14:47:15 +0100

Reset hotkey variables after parsing

Diffstat:
Mkeys.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/keys.c b/keys.c @@ -2619,6 +2619,11 @@ void unfold_hotkeys(char *folded_hotkey, char *folded_command) if (parse_hotkey(unfolded_hotkey, &keysym, &button, &modfield, &event_type)) generate_hotkeys(keysym, button, modfield, event_type, unfolded_command); + keysym = XCB_NO_SYMBOL; + button = XCB_NONE; + modfield = 0; + event_type = XCB_KEY_PRESS; + #define POSTGEN(elt, ra, rz, ptr) \ if (ra >= rz) \ elt = strtok_r(NULL, SEQ_SEP, &ptr), ra = 1, rz = 0; \