]> Dogcows Code - chaz/openbox/blobdiff - plugins/keyboard/translate.c
use ob_debug for any debug printing and only display the output when its a debug...
[chaz/openbox] / plugins / keyboard / translate.c
index d1fdc58d2eaa7e9b125df6b51aebf6e4eb8ab590..7cda04c3f56c59919a03a10ee7774d9be7acc3bb 100644 (file)
@@ -1,4 +1,4 @@
-#include "../../kernel/openbox.h"
+#include "kernel/openbox.h"
 #include <glib.h>
 #include <string.h>
 
@@ -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;
     }
This page took 0.020226 seconds and 4 git commands to generate.