From 09cb41f1dc8f7702adcbde665138f99d6ecd3330 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 13 Feb 2014 22:46:48 -0500 Subject: [PATCH] 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 39dff0e3c..846c724f4 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)))