discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=98f418afa979e9443d8b7e5b94fafd907bc21595

commit 98f418afa979e9443d8b7e5b94fafd907bc21595
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Oct 22 19:25:07 2015 -0400

    only apply frame geometry deltas for CSD if the CSD region exists
    
    ref e931e86161d7f419e44652b533fea4dc9b16241b
---
 src/bin/e_comp_object.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index 84ca071..f045d60 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -2951,12 +2951,18 @@ e_comp_object_frame_geometry_set(Evas_Object *obj, int 
l, int r, int t, int b)
        (cw->client_inset.t == t) && (cw->client_inset.b == b)) return;
    cw->client_inset.calc = l || r || t || b;
    eina_stringshare_replace(&cw->frame_theme, "borderless");
-   cw->ec->w += (l + r) - (cw->client_inset.l + cw->client_inset.r);
-   cw->ec->h += (t + b) - (cw->client_inset.t + cw->client_inset.b);
+   if (cw->client_inset.calc)
+     {
+        cw->ec->w += (l + r) - (cw->client_inset.l + cw->client_inset.r);
+        cw->ec->h += (t + b) - (cw->client_inset.t + cw->client_inset.b);
+     }
    if (!cw->ec->new_client)
      {
-        cw->ec->x -= l - cw->client_inset.l;
-        cw->ec->y -= t - cw->client_inset.t;
+        if (cw->client_inset.calc)
+          {
+             cw->ec->x -= l - cw->client_inset.l;
+             cw->ec->y -= t - cw->client_inset.t;
+          }
         cw->ec->changes.pos = cw->ec->changes.size = 1;
         EC_CHANGED(cw->ec);
      }

-- 


Reply via email to