From: Mike Blumenkrantz Date: Tue, 7 May 2013 07:50:08 +0000 (+0100) Subject: block damage and pixmap fetches on windows in geometry updates if window is shading X-Git-Tag: submit/efl/20131021.015651~703 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7e64b4e3844d47df780f9097c9c0ed09c7646af;p=platform%2Fupstream%2Fenlightenment.git block damage and pixmap fetches on windows in geometry updates if window is shading --- diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c index 0236dcc..23014fe 100644 --- a/src/bin/e_comp.c +++ b/src/bin/e_comp.c @@ -2782,11 +2782,14 @@ _e_comp_win_configure(E_Comp_Win *cw, int x, int y, int w, int h, int border) #if 1 cw->w = w; cw->h = h; - cw->needpix = 1; - // was cw->w / cw->h - // evas_object_resize(cw->effect_obj, cw->pw, cw->ph); resized = EINA_TRUE; - _e_comp_win_damage(cw, 0, 0, cw->w, cw->h, 0); + if ((!cw->bd) || ((!cw->bd->shading) && (cw->bd->shaded))) + { + cw->needpix = 1; + // was cw->w / cw->h + // evas_object_resize(cw->effect_obj, cw->pw, cw->ph); + _e_comp_win_damage(cw, 0, 0, cw->w, cw->h, 0); + } #else if (cw->bd) { @@ -2827,11 +2830,14 @@ _e_comp_win_configure(E_Comp_Win *cw, int x, int y, int w, int h, int border) DBG(" [0x%x] rsz %4ix%4i", cw->win, w, h); cw->w = w; cw->h = h; - cw->needpix = 1; - // was cw->w / cw->h - // evas_object_resize(cw->effect_obj, cw->pw, cw->ph); resized = EINA_TRUE; - if (!cw->real_obj) _e_comp_win_damage(cw, 0, 0, cw->w, cw->h, 0); + if ((!cw->bd) || ((!cw->bd->shading) && (cw->bd->shaded))) + { + cw->needpix = 1; + // was cw->w / cw->h + // evas_object_resize(cw->effect_obj, cw->pw, cw->ph); + if (!cw->real_obj) _e_comp_win_damage(cw, 0, 0, cw->w, cw->h, 0); + } } if (cw->border != border) {