X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=plugins%2Fkeyboard%2Fkeysrc.yacc;h=c1f977e829acca0d0772a8e7ec00ed87e6aa7daa;hb=bb103dc006a35e81fdfee803196e4b0a9cc832e8;hp=3546d0978c2748d14435214e911ba1624a3dd909;hpb=06f27af0a994a6f92d1c3a9306f46a73e6162bb8;p=chaz%2Fopenbox diff --git a/plugins/keyboard/keysrc.yacc b/plugins/keyboard/keysrc.yacc index 3546d097..c1f977e8 100644 --- a/plugins/keyboard/keysrc.yacc +++ b/plugins/keyboard/keysrc.yacc @@ -86,8 +86,10 @@ static void addbinding(GList *keylist, char *action, char *apath, int num) /* these have extra data! */ if (a->func == action_execute || a->func == action_restart) a->data.execute.path = apath; + else + g_free(apath); if (a->func == action_desktop) - a->data.desktop.desk = (unsigned) num + 1; + a->data.desktop.desk = (unsigned) num - 1; if (a->func == action_move_relative_horz || a->func == action_move_relative_vert || a->func == action_resize_relative_horz ||