X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fkeyboard%2Ftranslate.c;h=7cda04c3f56c59919a03a10ee7774d9be7acc3bb;hb=5be0a82a353b67160142134de1cc51fa31d72759;hp=d1fdc58d2eaa7e9b125df6b51aebf6e4eb8ab590;hpb=4f2696d3ef4a842257aa2dd246c0e12d505a2adb;p=chaz%2Fopenbox diff --git a/plugins/keyboard/translate.c b/plugins/keyboard/translate.c index d1fdc58d..7cda04c3 100644 --- a/plugins/keyboard/translate.c +++ b/plugins/keyboard/translate.c @@ -1,4 +1,4 @@ -#include "../../kernel/openbox.h" +#include "kernel/openbox.h" #include #include @@ -51,7 +51,7 @@ gboolean translate_key(char *str, guint *state, guint *keycode) goto translation_fail; } *keycode = XKeysymToKeycode(ob_display, sym); - if (!keycode) { + if (!*keycode) { g_warning("Key '%s' does not exist on the display.", l); goto translation_fail; }