]> Dogcows Code - chaz/openbox/commitdiff
Continue parsing contexts when an unsupported one is encountered
authorMikael Magnusson <mikachu@gmail.com>
Sat, 26 Jun 2010 14:08:30 +0000 (16:08 +0200)
committerMikael Magnusson <mikachu@gmail.com>
Thu, 16 Sep 2010 15:24:11 +0000 (17:24 +0200)
openbox/config.c

index 93ba3cb48fa169c0de52aa4dd31709c26738aba1..656ad3c9d8da82536fbee5f6f1d5fafca301a453 100644 (file)
@@ -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");
This page took 0.027862 seconds and 4 git commands to generate.