discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=09cb41f1dc8f7702adcbde665138f99d6ecd3330

commit 09cb41f1dc8f7702adcbde665138f99d6ecd3330
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Thu Feb 13 22:46:48 2014 -0500

    only reset move/resize attempts if the pending move/resize is different 
than the current one
---
 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 39dff0e..846c724 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -690,8 +690,11 @@ _e_comp_intercept_move(void *data, Evas_Object *obj, int 
x, int y)
 
    if ((cw->x == x) && (cw->y == y))
      {
-        cw->ec->post_move = 0;
-        cw->ec->x = x, cw->ec->y = y;
+        if ((cw->ec->x != x) || (cw->ec->y != y))
+          {
+             cw->ec->post_move = 0;
+             cw->ec->x = x, cw->ec->y = y;
+          }
         return;
      }
    if (!cw->ec->maximize_override)
@@ -745,8 +748,11 @@ _e_comp_intercept_resize(void *data, Evas_Object *obj, int 
w, int h)
 
    if ((cw->w == w) && (cw->h == h))
      {
-        cw->ec->post_resize = 0;
-        cw->ec->w = w, cw->ec->h = h;
+        if ((cw->ec->w != w) || (cw->ec->h != h))
+          {
+             cw->ec->post_resize = 0;
+             cw->ec->w = w, cw->ec->h = h;
+          }
         return;
      }
    if (cw->ec->fullscreen && ((w != cw->ec->zone->w) || (h != 
cw->ec->zone->h)))

-- 


Reply via email to