aboutsummaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2023-11-15 16:31:29 +0100
committerFederico Angelilli <code@fedang.net>2023-11-15 16:31:29 +0100
commitb6537b2969450aa6ce2631ecbf3c340dd2e2c23a (patch)
treef2ecb2fbd095f1a1033c8fcced181fbbc0088bb2 /draw.c
parent36fb2b942a08d58290b1d6ea1aec6d01f8e096b7 (diff)
Provide temporary fix for x shape mismatch (antialiasing)
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/draw.c b/draw.c
index 0eac18a..07aecb3 100644
--- a/draw.c
+++ b/draw.c
@@ -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);