aboutsummaryrefslogtreecommitdiff
path: root/x11.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 /x11.c
parent36fb2b942a08d58290b1d6ea1aec6d01f8e096b7 (diff)
Provide temporary fix for x shape mismatch (antialiasing)
Diffstat (limited to 'x11.c')
-rw-r--r--x11.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/x11.c b/x11.c
index 9a13bd9..ac1d858 100644
--- a/x11.c
+++ b/x11.c
@@ -20,8 +20,8 @@
#include "draw.h"
struct Window {
- xcb_screen_t *screen;
xcb_connection_t *connection;
+ xcb_screen_t *screen;
xcb_xrm_database_t *database;
xcb_errors_context_t *errors;
xcb_drawable_t window;
@@ -495,6 +495,9 @@ static void window_paint_corners(Window *win)
cairo_t *cr = cairo_create(surface);
+ // TODO: Fix antialiasing situation
+ //cairo_set_antialias(cr, CAIRO_ANTIALIAS_GOOD);
+
cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE);
cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);