all repos — openbox @ 46e549700a47fa5894223d6018ac4ca228444717

openbox fork - make it a bit more like ryudo

check for invalid keys properly
Dana Jansens danakj@orodu.net
commit

46e549700a47fa5894223d6018ac4ca228444717

parent

dffe96008448a7d66c5026e1e0520904c62702b4

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M plugins/keyboard/translate.cplugins/keyboard/translate.c

@@ -51,7 +51,7 @@ g_warning("Invalid key name '%s' in key binding.", l);

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; }