summaryrefslogtreecommitdiffstats
path: root/source/x11-helper.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-11-14 18:42:41 +0100
committerDave Davenport <qball@gmpclient.org>2016-11-14 18:42:41 +0100
commita9dbd787cfab9a0d4b913225e31ef4497dbfc535 (patch)
tree7a068aa29994008c12b2a6b7250aa5c545a905c3 /source/x11-helper.c
parent29cacd0e834748bf5ccbdea3c4ccbbae47b1062a (diff)
Include in error mesg, what key failed to bind.
Diffstat (limited to 'source/x11-helper.c')
-rw-r--r--source/x11-helper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/x11-helper.c b/source/x11-helper.c
index 606ff0f8..a5c0e581 100644
--- a/source/x11-helper.c
+++ b/source/x11-helper.c
@@ -678,10 +678,11 @@ gboolean x11_parse_key ( const char *combo, unsigned int *mod, xkb_keysym_t *key
g_free ( input_key );
if ( error_msg ) {
- g_string_append_printf ( str, "Sorry, rofi cannot understand the key combination: <i>%s</i>\n", combo );
+ char *name = g_markup_escape_text ( combo, -1 );
+ g_string_append_printf ( str, "Cannot understand the key combination: <i>%s</i>\n", name );
g_string_append ( str, error_msg );
+ g_free ( name );
g_free ( error_msg );
- g_string_append_c ( str, '\n' );
return FALSE;
}
*key = sym;