From 2143f4bf19bc824b2a40f379a083a39182066165 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Fri, 24 Sep 2021 21:19:19 +0100 Subject: [PATCH] theme: handle keys case-insensitively ...because this is what openbox does and some themes have capital letters in places --- src/theme.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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