all repos — openbox @ 0ba396fea03de6181a0eea737d24c6bf2190dde9

openbox fork - make it a bit more like ryudo

fix parentrel bevels
Dana Jansens danakj@orodu.net
commit

0ba396fea03de6181a0eea737d24c6bf2190dde9

parent

6e575967759943b4e9215c1842206b6db51c791d

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

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

@@ -210,18 +210,20 @@ area as the parent, and has a bevel, it will draw its bevel on top

of the parent's, amplifying it. So instead, rerender the child with the parent's settings, but the child's bevel and interlace */ if (a->surface.relief != RR_RELIEF_FLAT && + (a->surface.parent->surface.relief != RR_RELIEF_FLAT || + a->surface.parent->surface.border) && !a->surface.parentx && !a->surface.parenty && sw == w && sh == h) { RrSurface old = a->surface; a->surface = a->surface.parent->surface; - a->surface.relief = old.relief; - a->surface.bevel = old.bevel; + + /* turn these off for the parent */ + a->surface.relief = RR_RELIEF_FLAT; + a->surface.border = FALSE; + a->surface.pixel_data = old.pixel_data; - if (old.interlaced) { - a->surface.interlaced = TRUE; - a->surface.interlace_color = old.interlace_color; - } + RrRender(a, w, h); a->surface = old; } else {