1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-02-17 15:45:56 -05:00

[Widget] Don't use cairo_push/pop_group as it causes issues.

Seems to happen on nvidia systems, rendering to PNG surface is fine,
problem is with rendering to screen.
Hopefully this patch fixes it.

Issue: #2068
This commit is contained in:
Qball 2025-01-03 22:28:49 +01:00
parent 496101ac36
commit 3b1e483a6c

View file

@ -250,9 +250,7 @@ void widget_draw(widget *wid, cairo_t *d) {
cairo_restore(d);
if (left != 0 || top != 0 || right != 0 || bottom != 0) {
// NOTE: Cairo group push/pop has same effect as cairo_save/cairo_restore,
// thus no need for these.
cairo_push_group(d);
cairo_save(d);
cairo_set_operator(d, CAIRO_OPERATOR_ADD);
cairo_translate(d, wid->x, wid->y);
cairo_new_path(d);
@ -409,8 +407,7 @@ void widget_draw(widget *wid, cairo_t *d) {
cairo_fill(d);
}
cairo_pop_group_to_source(d);
cairo_paint(d);
cairo_restore(d);
}
}
}