]> git.sur5r.net Git - i3/i3/commitdiff
Revert "Use OVER operator for drawing text (#2908)" (#2925)
authorIngo Bürk <admin@airblader.de>
Sun, 10 Sep 2017 15:03:09 +0000 (17:03 +0200)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Sun, 10 Sep 2017 15:03:09 +0000 (17:03 +0200)
This reverts commit 16160462a30f186f5b72bb551ba2188670d4e45c.

libi3/font.c

index aef8427b5396c3d8d9082308e64a30ea94dcec6e..81091ea74a31da11d392864c1158ed387b0da1cd 100644 (file)
@@ -105,7 +105,7 @@ static void draw_text_pango(const char *text, size_t text_len,
         pango_layout_set_text(layout, text, text_len);
 
     /* Do the drawing */
-    cairo_set_operator(cr, CAIRO_OPERATOR_OVER);
+    cairo_set_operator(cr, CAIRO_OPERATOR_SOURCE);
     cairo_set_source_rgb(cr, pango_font_red, pango_font_green, pango_font_blue);
     pango_cairo_update_layout(cr, layout);
     pango_layout_get_pixel_size(layout, NULL, &height);