diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 9456990cb..6e5b80783 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -997,27 +997,6 @@ is_frozen (MetaWindowActor *self) return self->priv->freeze_count ? TRUE : FALSE; } -static void -meta_window_actor_queue_create_x11_pixmap (MetaWindowActor *self) -{ - MetaWindowActorPrivate *priv = self->priv; - - priv->needs_pixmap = TRUE; - - if (is_frozen (self)) - return; - - /* This will cause the compositor paint function to be run - * if the actor is visible or a clone of the actor is visible. - * if the actor isn't visible in any way, then we don't - * need to repair the window anyways, and can wait until - * the stage is redrawn for some other reason - * - * The compositor paint function repairs all windows. - */ - clutter_actor_queue_redraw (CLUTTER_ACTOR (priv->surface)); -} - static gboolean is_freeze_thaw_effect (gulong event) { @@ -1203,8 +1182,7 @@ meta_window_actor_detach_x11_pixmap (MetaWindowActor *self) XFreePixmap (xdisplay, priv->back_pixmap); priv->back_pixmap = None; - - meta_window_actor_queue_create_x11_pixmap (self); + priv->needs_pixmap = TRUE; } gboolean @@ -1354,7 +1332,7 @@ meta_window_actor_sync_actor_geometry (MetaWindowActor *self, { if (priv->x11_size_changed) { - meta_window_actor_queue_create_x11_pixmap (self); + priv->needs_pixmap = TRUE; meta_window_actor_update_shape (self); } } @@ -1530,7 +1508,7 @@ meta_window_actor_new (MetaWindow *window) priv->last_width = -1; priv->last_height = -1; - meta_window_actor_queue_create_x11_pixmap (self); + priv->needs_pixmap = TRUE; meta_window_actor_set_updates_frozen (self, meta_window_updates_are_frozen (priv->window));