only reset move/resize attempts if the pending move/resize is different than the current one

This commit is contained in:
Mike Blumenkrantz 2014-02-13 22:46:48 -05:00
parent d80dbc1a35
commit 09cb41f1dc
1 changed files with 10 additions and 4 deletions

View File

@ -690,8 +690,11 @@ _e_comp_intercept_move(void *data, Evas_Object *obj, int x, int y)
if ((cw->x == x) && (cw->y == y)) if ((cw->x == x) && (cw->y == y))
{ {
cw->ec->post_move = 0; if ((cw->ec->x != x) || (cw->ec->y != y))
cw->ec->x = x, cw->ec->y = y; {
cw->ec->post_move = 0;
cw->ec->x = x, cw->ec->y = y;
}
return; return;
} }
if (!cw->ec->maximize_override) 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)) if ((cw->w == w) && (cw->h == h))
{ {
cw->ec->post_resize = 0; if ((cw->ec->w != w) || (cw->ec->h != h))
cw->ec->w = w, cw->ec->h = h; {
cw->ec->post_resize = 0;
cw->ec->w = w, cw->ec->h = h;
}
return; return;
} }
if (cw->ec->fullscreen && ((w != cw->ec->zone->w) || (h != cw->ec->zone->h))) if (cw->ec->fullscreen && ((w != cw->ec->zone->w) || (h != cw->ec->zone->h)))