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:
Jasper St. Pierre 2012-05-03 16:03:45 -04:00
parent 143436c37c
commit 0a9bc8995a

View File

@ -1584,6 +1584,13 @@ meta_frames_draw (GtkWidget *widget,
gdk_cairo_region (cr, region);
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);
out: