diff options
Diffstat (limited to 'draw.c')
| -rw-r--r-- | draw.c | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -26,9 +26,18 @@ void draw(Window *win) double degree = M_PI / 180.0; cairo_set_source_rgb(cr, 0.3, 0.3, 0.3); - cairo_arc(cr, radius, radius, radius, 90.0 * degree, 270 * degree); - cairo_arc(cr, width - radius, radius, radius, 270 * degree, 450 * degree); - cairo_fill(cr); + + // TODO: Here we should paint the shape of the bar, however there is a problem with the surface + // painted in the pixmap to mask the window shape in window_paint_corners. + // + // This is caused by some difference between the two shapes (that should technically be the same) + // which causes a mismatch between the two layers and leaves some black pixels visible + + //cairo_arc(cr, radius, radius, radius, 90.0 * degree, 270 * degree); + //cairo_arc(cr, width - radius, radius, radius, 270 * degree, 450 * degree); + //cairo_fill(cr); + + cairo_paint(cr); cairo_set_line_width(cr, 1 * scale); |
