From: Mike Blumenkrantz Date: Thu, 18 Apr 2013 09:21:31 +0000 (+0100) Subject: fix comp win geometry updates to always use pixmap size when available X-Git-Tag: submit/efl/20131021.015651~801 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06dd5703a38c0273ae7055fac0217a2d6e980372;p=platform%2Fupstream%2Fenlightenment.git fix comp win geometry updates to always use pixmap size when available --- diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c index a707d71056..86eacb7bd1 100644 --- a/src/bin/e_comp.c +++ b/src/bin/e_comp.c @@ -483,7 +483,12 @@ _e_comp_win_geometry_update(E_Comp_Win *cw) if (cw->real_obj) w = cw->w, h = cw->h; else if (cw->bd) - w = cw->bd->w, h = cw->bd->h; + { + if (cw->pw && cw->ph) + w = cw->pw + cw->bd->client_inset.l + cw->bd->client_inset.r, h = cw->ph + cw->bd->client_inset.t + cw->bd->client_inset.b; + else + w = cw->bd->w, h = cw->bd->h; + } else w = cw->pw ?: cw->w, h = cw->ph ?: cw->h; if (cw->zoomobj) e_zoomap_child_resize(cw->zoomobj, w, h);