[mutter] MetaWindowActor: unset the shaped texture overlay path for frameless windows



commit c1368155fccb0677c74616cbb7366c02c24323b6
Author: Rui Matos <tiagomatos gmail com>
Date:   Mon Sep 19 15:07:40 2011 +0100

    MetaWindowActor: unset the shaped texture overlay path for frameless windows
    
    When a window loses its frame we must unset any overlay path previously set on
    the shaped texture.
    
    Not doing so would cause rendering glitches near the window corners in
    e.g. chrome/chromium by changing the Appearance preference "Use system title
    bar and borders" â "Hide system title bar and use compact borders".
    
    https://bugzilla.gnome.org/show_bug.cgi?id=659477

 src/compositor/meta-window-actor.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 7b3c07c..f9e2ff8 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -2078,7 +2078,11 @@ update_corners (MetaWindowActor   *self,
   cairo_surface_t *surface;
 
   if (!priv->window->frame)
-    return;
+    {
+      meta_shaped_texture_set_overlay_path (META_SHAPED_TEXTURE (priv->actor),
+                                            NULL, NULL);
+      return;
+    }
 
   meta_window_get_outer_rect (priv->window, &outer);
 



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