diff options
author | sabetts <sabetts> | 2001-08-27 19:11:48 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-08-27 19:11:48 +0000 |
commit | 45ddc51e6a9258aa56c74912f5986faf469ca5fb (patch) | |
tree | 86185ed79e1577b634415433884ee9054a23c44b /src | |
parent | 80ccb561f9b3ab45b2cb6194bb9970caac0f2d3a (diff) | |
download | ratpoison-45ddc51e6a9258aa56c74912f5986faf469ca5fb.zip |
code cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/events.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/events.c b/src/events.c index 165a45b..9fe9c24 100644 --- a/src/events.c +++ b/src/events.c @@ -390,7 +390,6 @@ static void handle_key (screen_info *s) { char *keysym_name; - char *msg; rp_action *key_action; int revert; Window fwin; /* Window currently in focus */ @@ -430,19 +429,12 @@ handle_key (screen_info *s) } else { - keysym_name = keysym_to_string (keysym, mod); - msg = (char *) xmalloc ( strlen ( keysym_name ) + 20 ); - - snprintf (msg, strlen (keysym_name) + 13, "%s unbound key!", keysym_name); - free (keysym_name); - - PRINT_DEBUG ("%s\n", msg); - /* No key match, notify user. */ XSetInputFocus (dpy, fwin, revert, CurrentTime); - message (msg); - free (msg); + keysym_name = keysym_to_string (keysym, mod); + marked_message_printf (0, 0, " %s unbound key ", keysym_name); + free (keysym_name); } #ifdef USE_WAITFORKEY_CURSOR |