From cfa30f98768a2f4d30b559795b22352a78061712 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Fri, 19 Mar 2010 19:09:06 +0000 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/src/compositor/mutter-window.c b/src/compositor/mutter-window.c index 3016e9639..4fa3cedf6 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);