X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Ftranslate.c;h=c697679d1291fd03da7f0837f384ac1475f8e11f;hb=cccc57fdb04b2e5602254f1eb623acc95f9a032e;hp=210155789927eae576028c6e8af45d421eaa178f;hpb=c6b22725640c2c1ab1023996807e750a11bd72f8;p=chaz%2Fopenbox diff --git a/openbox/translate.c b/openbox/translate.c index 21015578..c697679d 100644 --- a/openbox/translate.c +++ b/openbox/translate.c @@ -20,6 +20,7 @@ #include "openbox.h" #include "mouse.h" #include "modkeys.h" +#include "translate.h" #include "gettext.h" #include #include @@ -111,6 +112,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)