summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2019-08-22 12:25:44 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2020-02-28 19:36:42 +0200
commit0b2f5ad0a2f30726ac0dc59aa59f7f513e91c832 (patch)
tree2f3c08c0401bad8ff932bbad18dd2eae251bd476
parent705117086d8c792e30383e7963636ccdd87ad8e0 (diff)
downloadmetacity-0b2f5ad0a2f30726ac0dc59aa59f7f513e91c832.tar.gz
frames: use CAIRO_CONTENT_COLOR_ALPHA
And do not fill surface with opaque black (the default source pattern).
-rw-r--r--src/ui/frames.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 1a661d85..44c4a6ba 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2250,14 +2250,12 @@ generate_pixmap (MetaFrames *frames,
return NULL;
result = gdk_window_create_similar_surface (frame->window,
- CAIRO_CONTENT_COLOR,
+ CAIRO_CONTENT_COLOR_ALPHA,
rect->width, rect->height);
cr = cairo_create (result);
cairo_translate (cr, -rect->x, -rect->y);
- cairo_paint (cr);
-
meta_frames_paint (frames, frame, cr);
cairo_destroy (cr);