From 795e005566f2055999e226da8a34f50890c71c25 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 11 Jun 2009 18:46:44 -0400 Subject: [PATCH] Fix handling of not-visible texture pixmaps If we have an not-visible texture pixmap, we need to: - Still update it if it is realized, since it won't be updated when shown. And it might be also be cloned. - Queue a redraw if even if not visible, since it it might be cloned. http://bugzilla.openedhand.com/show_bug.cgi?id=1647 Signed-off-by: Emmanuele Bassi --- clutter/glx/clutter-glx-texture-pixmap.c | 2 -- clutter/x11/clutter-x11-texture-pixmap.c | 3 --- 2 files changed, 5 deletions(-) diff --git a/clutter/glx/clutter-glx-texture-pixmap.c b/clutter/glx/clutter-glx-texture-pixmap.c index aab75f658..f1ac9d318 100644 --- a/clutter/glx/clutter-glx-texture-pixmap.c +++ b/clutter/glx/clutter-glx-texture-pixmap.c @@ -829,9 +829,7 @@ clutter_glx_texture_pixmap_update_area (ClutterX11TexturePixmap *texture, else g_warning ("Failed to bind initial tex"); - if (CLUTTER_ACTOR_IS_VISIBLE (CLUTTER_ACTOR(texture))) clutter_actor_queue_redraw (CLUTTER_ACTOR(texture)); - } static void diff --git a/clutter/x11/clutter-x11-texture-pixmap.c b/clutter/x11/clutter-x11-texture-pixmap.c index a09ab1f9d..5b0dd6a88 100644 --- a/clutter/x11/clutter-x11-texture-pixmap.c +++ b/clutter/x11/clutter-x11-texture-pixmap.c @@ -1306,9 +1306,6 @@ clutter_x11_texture_pixmap_update_area (ClutterX11TexturePixmap *texture, { g_return_if_fail (CLUTTER_X11_IS_TEXTURE_PIXMAP (texture)); - if (!CLUTTER_ACTOR_IS_VISIBLE (CLUTTER_ACTOR(texture))) - return; /* No need to update when not visible */ - g_signal_emit (texture, signals[UPDATE_AREA], 0, x, y, width, height); }