diff --git a/util/wmmenugen_parse_xdg.c b/util/wmmenugen_parse_xdg.c index fc5f6b19..31ee8130 100644 --- a/util/wmmenugen_parse_xdg.c +++ b/util/wmmenugen_parse_xdg.c @@ -132,6 +132,11 @@ void parse_xdg(const char *file, cb_add_menu_entry *addWMMenuEntryCallback) /* start processing group */ memset(buf, 0, sizeof(buf)); continue; + } else if (p[0] == '[') { + /* If we find a new group and the previous group was the main one, + * we stop all further processing + */ + if (InGroup) break; } if (!InGroup) {