]> Dogcows Code - chaz/openbox/blobdiff - obt/keyboard.c
parse OnlyShowIn/NotShowIn
[chaz/openbox] / obt / keyboard.c
index 30aa7f9366ea8abffe468183337624809f877abc..f4761ed5e7b43757b812eca1b56e30173c0ed9ee 100644 (file)
@@ -147,7 +147,6 @@ void xim_init(void)
     if (g_ascii_islower(aclass[0]))
         aclass[0] = g_ascii_toupper(aclass[0]);
 
-    g_print("Opening Input Method for %s %s\n", aname, aclass);
     xim = XOpenIM(obt_display, NULL, aname, aclass);
 
     if (!xim)
@@ -300,7 +299,7 @@ KeyCode* obt_keyboard_keysym_to_keycode(KeySym sym)
     for (i = min_keycode; i <= max_keycode; ++i)
         for (j = 0; j < keysyms_per_keycode; ++j)
             if (sym == keymap[(i-min_keycode) * keysyms_per_keycode + j]) {
-                ret = g_renew(KeyCode, ret, ++n);
+                ret = g_renew(KeyCode, ret, ++n + 1);
                 ret[n-1] = i;
                 ret[n] = 0;
             }
This page took 0.020625 seconds and 4 git commands to generate.