From 06dd5703a38c0273ae7055fac0217a2d6e980372 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 18 Apr 2013 10:21:31 +0100 Subject: [PATCH] fix comp win geometry updates to always use pixmap size when available --- src/bin/e_comp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c index a707d71..86eacb7 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); -- 2.7.4