mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 09:51:29 +00:00
Fix cairo blending on tray icons
This commit is contained in:
parent
843ad38b3c
commit
790887ce76
|
@ -350,9 +350,12 @@ void render(struct output *output, struct config *config, struct status_line *li
|
||||||
tray_width -= tray_padding;
|
tray_width -= tray_padding;
|
||||||
tray_width -= item_size;
|
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_set_source_surface(cairo, render_item->icon, tray_width, tray_padding);
|
||||||
cairo_rectangle(cairo, tray_width, tray_padding, item_size, item_size);
|
cairo_rectangle(cairo, tray_width, tray_padding, item_size, item_size);
|
||||||
cairo_fill(cairo);
|
cairo_fill(cairo);
|
||||||
|
cairo_set_operator(cairo, op);
|
||||||
|
|
||||||
item->dirty = false;
|
item->dirty = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue