e17/evry: avoid some spankies

- keep pointer to idler, callback might be renewed


SVN revision: 78906
This commit is contained in:
Hannes Janetzek 2012-11-04 22:57:04 +00:00
parent e885e76f12
commit 401ad33fe5
1 changed files with 10 additions and 6 deletions

View File

@ -495,14 +495,18 @@ _e_smart_reconfigure_do(void *data)
if (!sd)
return ECORE_CALLBACK_CANCEL;
sd->idle_enter = NULL;
if (sd->w < 1)
return ECORE_CALLBACK_CANCEL;
{
sd->idle_enter = NULL;
return ECORE_CALLBACK_CANCEL;
}
if (sd->view->hiding)
return ECORE_CALLBACK_CANCEL;
{
sd->idle_enter = NULL;
return ECORE_CALLBACK_CANCEL;
}
if (sd->cx > (sd->cw - sd->w)) sd->cx = sd->cw - sd->w;
if (sd->cy > (sd->ch - sd->h)) sd->cy = sd->ch - sd->h;
if (sd->cx < 0) sd->cx = 0;