diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-07 22:45:33 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-07 22:45:33 -0400 |
commit | 790887ce762fb51d18e966de22bd2ab5b6a593c7 (patch) | |
tree | e24cea251473d34a87c136d66d3bf307e74908de /swaybar | |
parent | Implement Tray Icons (diff) | |
download | sway-790887ce762fb51d18e966de22bd2ab5b6a593c7.tar.gz sway-790887ce762fb51d18e966de22bd2ab5b6a593c7.tar.zst sway-790887ce762fb51d18e966de22bd2ab5b6a593c7.zip |
Fix cairo blending on tray icons
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/render.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 0b2ac438..d02ecbbb 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 | |||
350 | tray_width -= tray_padding; | 350 | tray_width -= tray_padding; |
351 | tray_width -= item_size; | 351 | tray_width -= item_size; |
352 | 352 | ||
353 | cairo_operator_t op = cairo_get_operator(cairo); | ||
354 | cairo_set_operator(cairo, CAIRO_OPERATOR_OVER); | ||
353 | cairo_set_source_surface(cairo, render_item->icon, tray_width, tray_padding); | 355 | cairo_set_source_surface(cairo, render_item->icon, tray_width, tray_padding); |
354 | cairo_rectangle(cairo, tray_width, tray_padding, item_size, item_size); | 356 | cairo_rectangle(cairo, tray_width, tray_padding, item_size, item_size); |
355 | cairo_fill(cairo); | 357 | cairo_fill(cairo); |
358 | cairo_set_operator(cairo, op); | ||
356 | 359 | ||
357 | item->dirty = false; | 360 | item->dirty = false; |
358 | } | 361 | } |