]> Dogcows Code - chaz/openbox/commitdiff
check for invalid keys properly
authorDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 13:25:21 +0000 (13:25 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 26 Mar 2003 13:25:21 +0000 (13:25 +0000)
plugins/keyboard/translate.c

index d1fdc58d2eaa7e9b125df6b51aebf6e4eb8ab590..25e1c6a6a0e388819ca117f4b88894537bd0977f 100644 (file)
@@ -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.024787 seconds and 4 git commands to generate.