discomfitor pushed a commit to branch master.

commit 06dd5703a38c0273ae7055fac0217a2d6e980372
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Apr 18 10:21:31 2013 +0100

    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);

-- 

------------------------------------------------------------------------------
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