[metacity/gnome-3-20] frames: use cairo_push_group in meta_frames_get_mask



commit fd696d2f060da5bdbf642281f6d29e28626267bc
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Aug 9 22:41:45 2016 +0300

    frames: use cairo_push_group in meta_frames_get_mask

 src/ui/frames.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index bd5044b..0963b7f 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2210,7 +2210,12 @@ meta_frames_get_mask (MetaFrames *frames,
   if (frame == NULL)
     return;
 
+  cairo_push_group (cr);
+
   meta_frames_paint (frames, frame, cr);
+
+  cairo_pop_group_to_source (cr);
+  cairo_paint (cr);
 }
 
 /* XXX -- this is disgusting. Find a better approach here.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]