summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2011-09-19 15:07:40 +0100
committerRui Matos <tiagomatos@gmail.com>2011-09-19 18:52:43 +0100
commitc1368155fccb0677c74616cbb7366c02c24323b6 (patch)
tree051d4bfbbb49638a9f3f16f740e9c3ec2db07bc3
parentd305174eccf60acb3461d763eae12a661d3172aa (diff)
downloadmutter-c1368155fccb0677c74616cbb7366c02c24323b6.tar.gz
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
-rw-r--r--src/compositor/meta-window-actor.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 7b3c07c72..f9e2ff80b 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);