diff options
author | Rui Matos <tiagomatos@gmail.com> | 2011-09-19 15:07:40 +0100 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2011-09-19 18:52:43 +0100 |
commit | c1368155fccb0677c74616cbb7366c02c24323b6 (patch) | |
tree | 051d4bfbbb49638a9f3f16f740e9c3ec2db07bc3 | |
parent | d305174eccf60acb3461d763eae12a661d3172aa (diff) | |
download | mutter-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.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 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); |