[mutter/wip/fmuellner/gtk-shadows: 2/8] ui: Render frame in mask as well



commit 9149f56b514525ad11bef34dcaf235aaf4751804
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Oct 27 16:05:40 2016 +0200

    ui: Render frame in mask as well
    
    The theme may render bits of the frame that are outside the rendered
    area of the background, so don't skip it when painting the frame mask.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744667

 src/ui/frames.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 6abe52e..cb21ab8 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -1358,10 +1358,19 @@ meta_ui_frame_get_mask (MetaUIFrame *frame,
                          borders.invisible.left / scale,
                          borders.invisible.top / scale,
                          frame_rect.width / scale, frame_rect.height / scale);
+  gtk_render_frame (frame->style_info->styles[META_STYLE_ELEMENT_FRAME], cr,
+                    borders.invisible.left / scale,
+                    borders.invisible.top / scale,
+                    frame_rect.width / scale, frame_rect.height / scale);
+
   gtk_render_background (frame->style_info->styles[META_STYLE_ELEMENT_TITLEBAR], cr,
                          borders.invisible.left / scale,
                          borders.invisible.top / scale,
                          frame_rect.width / scale, borders.total.top / scale);
+  gtk_render_frame (frame->style_info->styles[META_STYLE_ELEMENT_TITLEBAR], cr,
+                    borders.invisible.left / scale,
+                    borders.invisible.top / scale,
+                    frame_rect.width / scale, borders.total.top / scale);
 }
 
 /* XXX -- this is disgusting. Find a better approach here.


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