MetaWindowActor/wayland: make sure the mapped bit is correctly set

Otherwise it stays FALSE for OR windows, causing the shape region
to be empty and the actor culled from drawing.

https://bugzilla.gnome.org/show_bug.cgi?id=706078
This commit is contained in:
Giovanni Campagna 2013-08-15 16:45:54 +02:00
parent 2f3a5f2001
commit 152d896f75

View File

@ -1583,13 +1583,13 @@ meta_window_actor_new (MetaWindow *window)
NULL);
priv = self->priv;
priv->mapped = meta_window_toplevel_is_mapped (priv->window);
if (!meta_is_wayland_compositor ())
{
priv->last_width = -1;
priv->last_height = -1;
priv->mapped = meta_window_toplevel_is_mapped (priv->window);
if (priv->mapped)
meta_window_actor_queue_create_x11_pixmap (self);