[mutter] meta-window-actor: Don't unredirect shaped windows



commit 66eac7824a7eb70fdd90109b763e59b70a13739b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jun 7 23:31:21 2012 -0400

    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 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 14010a0..2dfde8b 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);
 



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