From: Mikael Magnusson Date: Mon, 4 Jun 2007 16:13:34 +0000 (+0000) Subject: actually allow raised, but default to flat for parentrelative X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ee36c0d3796e6b954e6a80f5024e695bb6473d6c;p=chaz%2Fopenbox actually allow raised, but default to flat for parentrelative --- diff --git a/render/theme.c b/render/theme.c index f3f7e5f4..313f834c 100644 --- a/render/theme.c +++ b/render/theme.c @@ -1476,10 +1476,13 @@ static void parse_style(gchar *tex, RrSurfaceColorType *grad, if (strstr(tex, "sunken") != NULL) *relief = RR_RELIEF_SUNKEN; - else if ((strstr(tex, "flat") != NULL) || (*grad == RR_SURFACE_PARENTREL)) + else if (strstr(tex, "flat") != NULL) *relief = RR_RELIEF_FLAT; - else + else if (strstr(tex, "raised") != NULL) *relief = RR_RELIEF_RAISED; + else + *relief = (*grad == RR_SURFACE_PARENTREL) ? + RR_RELIEF_FLAT : RR_RELIEF_RAISED; *border = FALSE; if (*relief == RR_RELIEF_FLAT) {