From: Johan Malm Date: Fri, 24 Sep 2021 20:19:19 +0000 (+0100) Subject: theme: handle keys case-insensitively X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=2143f4bf19bc824b2a40f379a083a39182066165;p=proto%2Flabwc.git theme: handle keys case-insensitively ...because this is what openbox does and some themes have capital letters in places --- diff --git a/src/theme.c b/src/theme.c index f9d1802b..62c813fa 100644 --- a/src/theme.c +++ b/src/theme.c @@ -106,7 +106,11 @@ theme_builtin(struct theme *theme) static bool match(const gchar *pattern, const gchar *string) { - return (bool)g_pattern_match_simple(pattern, string); + GString *p = g_string_new(pattern); + g_string_ascii_down(p); + bool ret = (bool)g_pattern_match_simple(p->str, string); + g_string_free(p, true); + return ret; } static void