From: Mikael Magnusson Date: Sat, 26 Jun 2010 14:08:30 +0000 (+0200) Subject: Continue parsing contexts when an unsupported one is encountered X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a4a5fc866db0ad56fb678740314573a06349ed7e;p=chaz%2Fopenbox Continue parsing contexts when an unsupported one is encountered --- diff --git a/openbox/config.c b/openbox/config.c index 93ba3cb4..656ad3c9 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -491,9 +491,14 @@ static void parse_mouse(xmlNodePtr node, gpointer d) modcxstr = g_strdup(cxstr); /* make a copy to mutilate */ while (frame_next_context_from_string(modcxstr, &cx)) { if (!cx) { - g_message(_("Invalid context \"%s\" in mouse binding"), - cxstr); - break; + gchar *s = strchr(modcxstr, ' '); + if (s) { + *s = '\0'; + g_message(_("Invalid context \"%s\" in mouse binding"), + modcxstr); + *s = ' '; + } + continue; } nbut = obt_xml_find_node(n->children, "mousebind");