all repos — openbox @ a4a5fc866db0ad56fb678740314573a06349ed7e

openbox fork - make it a bit more like ryudo

Continue parsing contexts when an unsupported one is encountered
Mikael Magnusson mikachu@gmail.com
commit

a4a5fc866db0ad56fb678740314573a06349ed7e

parent

1ffc0021325e30db7bb7f8b2a17ca7f5546b3324

1 files changed, 8 insertions(+), 3 deletions(-)

jump to
M openbox/config.copenbox/config.c

@@ -491,9 +491,14 @@

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");