X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fkeyboard%2Fkeysrc.yacc;h=50f41b8009a0571b76b93c4ad019da1c15a707b3;hb=b185f7d8dd188b459d8eb05715446cb17380bb85;hp=d779da838464daec914ee6caf555d71c15ccbc90;hpb=1fb5c4b595677a029c75b75ef85a69ec90160da8;p=chaz%2Fopenbox diff --git a/plugins/keyboard/keysrc.yacc b/plugins/keyboard/keysrc.yacc index d779da83..50f41b80 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); } ; %% @@ -89,7 +89,7 @@ static void addbinding(GList *keylist, char *action, char *apath, int num) 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 ||