[mutter/meego-1.0: 24/30] make sure we create a pixmap for all new mutter windows
- From: Tomas Frydrych <tomasf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/meego-1.0: 24/30] make sure we create a pixmap for all new mutter windows
- Date: Fri, 14 May 2010 15:51:46 +0000 (UTC)
commit ba81833eef7fad48f6179037f99fd538d9781574
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 c0d56ea..63dca4b 100644
--- a/src/compositor/mutter-window.c
+++ b/src/compositor/mutter-window.c
@@ -1264,6 +1264,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]