discomfitor pushed a commit to branch master.

commit 4c9796905694d43554a5ee4f691f99928f8ece70
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Jul 24 07:05:24 2013 +0100

    asdf
---
 src/bin/e_comp.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index b173400..8e8aec5 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -754,14 +754,9 @@ _e_comp_win_update(E_Comp_Win *cw)
                     {
                        unsigned int *pix;
 
-                       pix = ecore_x_image_data_get(cw->xim, NULL, NULL, NULL);
-                       evas_object_image_data_set(cw->obj, pix);
                        evas_object_image_size_set(cw->obj, cw->pw, cw->ph);
                        EINA_LIST_FOREACH(cw->obj_mirror, l, o)
-                         {
-                            evas_object_image_data_set(o, pix);
-                            evas_object_image_size_set(o, cw->pw, cw->ph);
-                         }
+                         evas_object_image_size_set(o, cw->pw, cw->ph);
 
                        e_comp_render_update_clear(cw->up);
                        for (i = 0; r[i].w > 0; i++)
@@ -778,14 +773,19 @@ _e_comp_win_update(E_Comp_Win *cw)
                               }
                             else
                               {
-                                 // why do we neeed these 2? this smells wrong
-                                 pix = ecore_x_image_data_get(cw->xim, NULL, 
NULL, NULL);
-                                 DBG("UPDATE [0x%x] %i %i %ix%i -- pix = %p", 
cw->win, x, y, w, h, pix);
+                                 DBG("UPDATE [0x%x] %i %i %ix%i", cw->win, x, 
y, w, h);
                                  evas_object_image_data_update_add(cw->obj, x, 
y, w, h);
                                  EINA_LIST_FOREACH(cw->obj_mirror, l, o)
                                    evas_object_image_data_update_add(o, x, y, 
w, h);
                               }
                          }
+                       if (!cw->update)
+                         {
+                            pix = ecore_x_image_data_get(cw->xim, NULL, NULL, 
NULL);
+                            evas_object_image_data_set(cw->obj, pix);
+                            EINA_LIST_FOREACH(cw->obj_mirror, l, o)
+                              evas_object_image_data_set(o, pix);
+                         }
                     }
                   else
                     {

-- 

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

Reply via email to