all repos — openbox @ 232e0030943bd7c3b332aca8e05618558d08d297

openbox fork - make it a bit more like ryudo

dont set fields if in a comment
Dana Jansens danakj@orodu.net
commit

232e0030943bd7c3b332aca8e05618558d08d297

parent

093c4cb710fa04dc67fc93278b951038b263a1fc

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

jump to
M plugins/mouse/mouserc_parse.lplugins/mouse/mouserc_parse.l

@@ -37,16 +37,18 @@ %%

static void gotfield() { - if (context == NULL) - context = g_strdup(mparsetext); - else if (event == NULL) - event = g_strdup(mparsetext); - else if (button == NULL) - button = g_strdup(mparsetext); - else if (action == NULL) - action = g_strdup(mparsetext); - else - error = TRUE; + if (!comment) { + if (context == NULL) + context = g_strdup(mparsetext); + else if (event == NULL) + event = g_strdup(mparsetext); + else if (button == NULL) + button = g_strdup(mparsetext); + else if (action == NULL) + action = g_strdup(mparsetext); + else + error = TRUE; + } } static void endofline()