]> Dogcows Code - chaz/openbox/blobdiff - openbox/translate.c
dont reparse the config file when the keyboard map changes. just rebind everything...
[chaz/openbox] / openbox / translate.c
index 210155789927eae576028c6e8af45d421eaa178f..b2ae7d677eca6a619df161bba1eca8b7d2a10ea5 100644 (file)
@@ -111,6 +111,8 @@ gboolean translate_key(const gchar *str, guint *state, guint *keycode)
 
     parsed = g_strsplit(str, "-", -1);
 
+    *state = *keycode = 0;
+
     /* first, find the key (last token) */
     l = NULL;
     for (i = 0; parsed[i] != NULL; ++i)
This page took 0.019719 seconds and 4 git commands to generate.