all repos — openbox @ ee36c0d3796e6b954e6a80f5024e695bb6473d6c

openbox fork - make it a bit more like ryudo

actually allow raised, but default to flat for parentrelative
Mikael Magnusson mikachu@comhem.se
commit

ee36c0d3796e6b954e6a80f5024e695bb6473d6c

parent

3a89939c2decf295a5d85e5306ca259e64812d9d

1 files changed, 5 insertions(+), 2 deletions(-)

jump to
M render/theme.crender/theme.c

@@ -1476,10 +1476,13 @@ }

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 if (strstr(tex, "raised") != NULL) + *relief = RR_RELIEF_RAISED; else - *relief = RR_RELIEF_RAISED; + *relief = (*grad == RR_SURFACE_PARENTREL) ? + RR_RELIEF_FLAT : RR_RELIEF_RAISED; *border = FALSE; if (*relief == RR_RELIEF_FLAT) {