diff options
author | rcyeske <rcyeske> | 2001-02-22 04:10:36 +0000 |
---|---|---|
committer | rcyeske <rcyeske> | 2001-02-22 04:10:36 +0000 |
commit | af8a1da648626a246514e2a4a0446a40ebf37a41 (patch) | |
tree | c64b8b7e9950fa7cc4a69ce361818afdf269d345 /src/events.c | |
parent | c59150f7c0c5fa35c15d15814cc2d306f0fac16b (diff) | |
download | ratpoison-af8a1da648626a246514e2a4a0446a40ebf37a41.zip |
added preliminar keybinding support
Diffstat (limited to 'src/events.c')
-rw-r--r-- | src/events.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/events.c b/src/events.c index 5cbc08a..ce81d24 100644 --- a/src/events.c +++ b/src/events.c @@ -287,7 +287,7 @@ handle_key (screen_info *s) { char *keysym_name; char *msg; - char *cmd; + rp_action *key_action; int revert; Window fwin; /* Window currently in focus */ KeySym keysym; /* Key pressed */ @@ -304,10 +304,10 @@ handle_key (screen_info *s) read_key (&keysym, &mod); - if ((cmd = find_keybinding (keysym, mod))) + if ((key_action = find_keybinding (keysym, mod))) { XSetInputFocus (dpy, fwin, revert, CurrentTime); - command (cmd); + command (key_action->data); } else { |