From 66eac7824a7eb70fdd90109b763e59b70a13739b Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 7 Jun 2012 23:31:21 -0400 Subject: [PATCH] meta-window-actor: Don't unredirect shaped windows If a window has its BoundingRegion shaped, we shouldn't unredirect it, as it expects the rest of the windows from being shown under it. This prevents applications like the Skype screen recorder or gtkRecordMyDesktop which want to show a "border" around the recorded area from being unredirected, giving the appearance of making the desktop freeze. https://bugzilla.gnome.org/show_bug.cgi?id=677657 --- src/compositor/meta-window-actor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 14010a082..2dfde8b4f 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -1202,6 +1202,9 @@ meta_window_actor_should_unredirect (MetaWindowActor *self) if (priv->argb32) return FALSE; + if (metaWindow->has_shape) + return FALSE; + meta_screen_get_size (screen, &screen_width, &screen_height); meta_window_get_outer_rect (metaWindow, &window_rect);