mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
frames: Support opacity in frame drawing
There's still a bug here (frame opacity doesn't "kick in" until we change the frame geometry), and the colors aren't correct (we're painting on top of a white surface, not a 0-alpha surface), but we at least remove some redraw issues that come when you're not always obscuring the last paint.
This commit is contained in:
parent
143436c37c
commit
0a9bc8995a
@ -1584,6 +1584,13 @@ meta_frames_draw (GtkWidget *widget,
|
|||||||
|
|
||||||
gdk_cairo_region (cr, region);
|
gdk_cairo_region (cr, region);
|
||||||
cairo_clip (cr);
|
cairo_clip (cr);
|
||||||
|
|
||||||
|
cairo_save (cr);
|
||||||
|
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
|
||||||
|
cairo_set_source_rgba (cr, 1, 1, 1, 1);
|
||||||
|
cairo_paint (cr);
|
||||||
|
cairo_restore (cr);
|
||||||
|
|
||||||
meta_frames_paint (frames, frame, cr);
|
meta_frames_paint (frames, frame, cr);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user