diff --git a/src/draw.c b/src/draw.c index 931f36c..5bb0663 100644 --- a/src/draw.c +++ b/src/draw.c @@ -510,30 +510,28 @@ static cairo_surface_t *render_background(cairo_surface_t *srf, else height += settings.separator_height; - if (settings.frame_width > 0) { - draw_rounded_rect(c, x, y, width, height, corner_radius, first, last); + draw_rounded_rect(c, x, y, width, height, corner_radius, first, last); - /* adding frame */ - x += settings.frame_width; - if (first) { - y += settings.frame_width; - height -= settings.frame_width; - } - - width -= 2 * settings.frame_width; - - if (last) - height -= settings.frame_width; - else - height -= settings.separator_height; - - radius_int = frame_internal_radius (corner_radius, settings.frame_width, height); - - draw_rounded_rect(c, x, y, width, height, radius_int, first, last); - cairo_set_source_rgba(c, cl->frame.r, cl->frame.g, cl->frame.b, cl->frame.a); - cairo_fill(c); + /* adding frame */ + x += settings.frame_width; + if (first) { + y += settings.frame_width; + height -= settings.frame_width; } + width -= 2 * settings.frame_width; + + if (last) + height -= settings.frame_width; + else + height -= settings.separator_height; + + radius_int = frame_internal_radius (corner_radius, settings.frame_width, height); + + draw_rounded_rect(c, x, y, width, height, radius_int, first, last); + cairo_set_source_rgba(c, cl->frame.r, cl->frame.g, cl->frame.b, cl->frame.a); + cairo_fill(c); + draw_rounded_rect(c, x, y, width, height, radius_int, first, last); cairo_set_source_rgba(c, cl->bg.r, cl->bg.g, cl->bg.b, cl->bg.a); cairo_fill(c);