X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=plugins%2Fkeyboard%2Fkeysrc.yacc;h=24297d3b63d3907194c3b5adc188eedc77b292b7;hb=8a6a9710eb9f7a22d5e0cb01b18f1d3aad78e908;hp=c1f977e829acca0d0772a8e7ec00ed87e6aa7daa;hpb=bb103dc006a35e81fdfee803196e4b0a9cc832e8;p=chaz%2Fopenbox diff --git a/plugins/keyboard/keysrc.yacc b/plugins/keyboard/keysrc.yacc index c1f977e8..24297d3b 100644 --- a/plugins/keyboard/keysrc.yacc +++ b/plugins/keyboard/keysrc.yacc @@ -22,7 +22,7 @@ static char *path; GList *list; } -%token INTEGER; +%token INTEGER %token STRING %token FIELD %token DESKTOP @@ -39,8 +39,8 @@ config: ; fields: - FIELD { $$ = g_list_prepend(NULL, $1); } - | fields FIELD { $$ = g_list_prepend($1, $2); } + FIELD { $$ = g_list_append(NULL, $1); } + | fields FIELD { $$ = g_list_append($1, $2); } ; %% @@ -88,7 +88,7 @@ static void addbinding(GList *keylist, char *action, char *apath, int num) a->data.execute.path = apath; else g_free(apath); - if (a->func == action_desktop) + if (a->func == action_desktop || a->func == action_send_to_desktop) a->data.desktop.desk = (unsigned) num - 1; if (a->func == action_move_relative_horz || a->func == action_move_relative_vert ||