diff options
author | Shawn Betts <sabetts@gmail.com> | 2008-02-11 23:16:07 -0800 |
---|---|---|
committer | Shawn Betts <sabetts@gmail.com> | 2008-02-11 23:16:07 -0800 |
commit | fa2fa9692587a431399ce3786f3b1e970b5e244e (patch) | |
tree | f21d88c317309eca6b645dae3166a508507691f6 /src/input.c | |
parent | 6ef6c4ddce5eec679d81c48c0f5b72ab04a388f2 (diff) | |
download | ratpoison-fa2fa9692587a431399ce3786f3b1e970b5e244e.zip |
return a value in read_single_key
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c index 3297ac7..d0c9df6 100644 --- a/src/input.c +++ b/src/input.c @@ -394,11 +394,14 @@ read_single_key (KeySym *keysym, unsigned int *modifiers, char *keysym_name, int { Window focus; int revert; + int nbytes; XGetInputFocus (dpy, &focus, &revert); set_window_focus (current_screen()->key_window); - read_key (keysym, modifiers, keysym_name, len); + nbytes = read_key (keysym, modifiers, keysym_name, len); set_window_focus (focus); + + return nbytes; } int |