forked from enlightenment/enlightenment
only reset move/resize attempts if the pending move/resize is different than the current one
This commit is contained in:
parent
d80dbc1a35
commit
09cb41f1dc
|
@ -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)))
|
||||||
|
|
Loading…
Reference in New Issue