diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-03 08:12:26 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-05-03 08:12:26 -0400 |
commit | 8f06aa7598ee79613617096ac3de8d402bdf1737 (patch) | |
tree | 7217b1415b8db51de94597d215b9ffe15df363b3 /sway/tree | |
parent | 74d1367facf75e1b78fe54942f863e69b75c73d1 (diff) |
Fix anti-aliasing
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/container.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index de03ac68..d89019a3 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -582,6 +582,10 @@ static void update_title_texture(struct sway_container *con, cairo_surface_t *surface = cairo_image_surface_create( CAIRO_FORMAT_ARGB32, width, height); cairo_t *cairo = cairo_create(surface); + cairo_set_source_rgba(cairo, class->background[0], class->background[1], + class->background[2], class->background[3]); + cairo_paint(cairo); + cairo_set_antialias(cairo, CAIRO_ANTIALIAS_BEST); PangoContext *pango = pango_cairo_create_context(cairo); cairo_set_source_u32(cairo, class->text); cairo_move_to(cairo, 0, 0); |