summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-08-27 19:11:48 +0000
committersabetts <sabetts>2001-08-27 19:11:48 +0000
commit45ddc51e6a9258aa56c74912f5986faf469ca5fb (patch)
tree86185ed79e1577b634415433884ee9054a23c44b
parent80ccb561f9b3ab45b2cb6194bb9970caac0f2d3a (diff)
downloadratpoison-45ddc51e6a9258aa56c74912f5986faf469ca5fb.zip
code cleanup
-rw-r--r--ChangeLog3
-rw-r--r--src/events.c14
2 files changed, 6 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 3320470..80ea44c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2001-08-27 Shawn <sabetts@hotdog>
+ * src/events.c (handle_key): use marked_message_printf to notify
+ user of an unbound key.
+
* src/messages.h (MESSAGE_RAISE_TRANSIENT): new message
(MESSAGE_RAISE_WINDOW): likewise
(MESSAGE_MAP_TRANSIENT): likewise
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