[mutter] make sure we create a pixmap for all new mutter windows



commit cfa30f98768a2f4d30b559795b22352a78061712
Author: Robert Bragg <robert linux intel com>
Date:   Fri Mar 19 19:09:06 2010 +0000

    make sure we create a pixmap for all new mutter windows
    
    In the case where a mutter window is created for an X Window that is
    already mapped then we weren't calling mutter_window_mark_for_repair and
    so we weren't calling XCompositeNameWindowPixmap e.g. for menu windows.
    
    This doesn't get noticed because as soon as some damage gets delivered
    for such windows the pixmap will be named anyway, but if we were to
    change how damage is handled this would result in broken menus.
    
    We now call mutter_window_mark_for_repair in mutter_window_new when the
    given Window is already mapped.

 src/compositor/mutter-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/mutter-window.c b/src/compositor/mutter-window.c
index 3016e96..4fa3ced 100644
--- a/src/compositor/mutter-window.c
+++ b/src/compositor/mutter-window.c
@@ -1205,6 +1205,8 @@ mutter_window_new (MetaWindow *window)
   priv = self->priv;
 
   priv->mapped = meta_window_toplevel_is_mapped (priv->window);
+  if (priv->mapped)
+    mutter_window_mark_for_repair (self);
 
   mutter_window_sync_actor_position (self);
 



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