aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-07 22:45:33 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-07 22:45:33 -0400
commit790887ce762fb51d18e966de22bd2ab5b6a593c7 (patch)
treee24cea251473d34a87c136d66d3bf307e74908de
parent843ad38b3c427adb0bf319e9613d9813c8d9246c (diff)
downloadsway-790887ce762fb51d18e966de22bd2ab5b6a593c7.zip
sway-790887ce762fb51d18e966de22bd2ab5b6a593c7.tar.gz
sway-790887ce762fb51d18e966de22bd2ab5b6a593c7.tar.bz2
Fix cairo blending on tray icons
-rw-r--r--swaybar/render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/swaybar/render.c b/swaybar/render.c
index 0b2ac43..d02ecbb 100644
--- a/swaybar/render.c
+++ b/swaybar/render.c
@@ -350,9 +350,12 @@ void render(struct output *output, struct config *config, struct status_line *li
tray_width -= tray_padding;
tray_width -= item_size;
+ cairo_operator_t op = cairo_get_operator(cairo);
+ cairo_set_operator(cairo, CAIRO_OPERATOR_OVER);
cairo_set_source_surface(cairo, render_item->icon, tray_width, tray_padding);
cairo_rectangle(cairo, tray_width, tray_padding, item_size, item_size);
cairo_fill(cairo);
+ cairo_set_operator(cairo, op);
item->dirty = false;
}