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

@ -689,9 +689,12 @@ _e_comp_intercept_move(void *data, Evas_Object *obj, int x, int y)
int ix, iy;
if ((cw->x == x) && (cw->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)
@ -744,9 +747,12 @@ _e_comp_intercept_resize(void *data, Evas_Object *obj, int w, int h)
int pw, ph, fw, fh, iw, ih, prev_w, prev_h;
if ((cw->w == w) && (cw->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)))