discomfitor pushed a commit to branch master.

commit 22b95a70b15b3e5a0b626c341d2c72a9210db6e3
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Apr 18 10:08:07 2013 +0100

    set comp win geometry update flag for pixmap update during initial show
---
 src/bin/e_comp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index 5f03f8f..2c1414a 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -582,6 +582,7 @@ _e_comp_win_update(E_Comp_Win *cw)
                {
                   ecore_x_pixmap_geometry_get(cw->pixmap, NULL, NULL, 
&(cw->pw), &(cw->ph));
                   _e_comp_win_ready_timeout_setup(cw);
+                  if ((cw->pw != pw) || (cw->ph != ph)) cw->geom_update = 1;
                }
              else
                {
@@ -2408,8 +2409,10 @@ _e_comp_win_show(E_Comp_Win *cw)
 {
    Eina_List *l;
    Evas_Object *o;
+   int pw, ph;
 
    if (cw->visible || cw->input_only || cw->invalid) return;
+   pw = cw->pw, ph = cw->ph;
    cw->visible = 1;
    DBG("  [0x%x] sho ++ [redir=%i, pm=%x, dmg_up=%i]",
        cw->win, cw->redirected, cw->pixmap, cw->dmg_updates);
@@ -2488,6 +2491,7 @@ _e_comp_win_show(E_Comp_Win *cw)
           {
              ecore_x_pixmap_geometry_get(cw->pixmap, NULL, NULL, &(cw->pw), 
&(cw->ph));
              _e_comp_win_ready_timeout_setup(cw);
+             if ((cw->pw != pw) || (cw->ph != ph)) cw->geom_update = 1;
           }
         else
           {

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to