[mutter/wip/ssd-black-borders-fix: 14/22] compositor: recompute shape when surface is changed



commit c21d12c4acf27b883a23616698f569bd7bafacd2
Author: Ray Strode <rstrode redhat com>
Date:   Mon Mar 19 14:31:16 2018 -0400

    compositor: recompute shape when surface is changed
    
    Anytime the surface is changed, we need to rebuild our masks and
    recalculate our shapes since the new surface may have a different
    size.
    
    If the actor gets redrawn for any reason before that computation
    happens then it will misrender.
    
    This commit makes sure we do the recomputation right away, before
    any painting might occur.

 src/compositor/meta-window-actor.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index c67b2b7b0..768ce3acb 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -296,6 +296,7 @@ surface_size_changed (MetaSurfaceActor *actor,
   MetaWindowActor *self = META_WINDOW_ACTOR (user_data);
 
   meta_window_actor_update_shape (self);
+  meta_window_actor_handle_updates (self);
 }
 
 static void


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