trivial/break out nocomp end into util function

This commit is contained in:
Mike Blumenkrantz 2014-07-19 15:06:59 -04:00
parent a4619ea492
commit 0599c6897e
1 changed files with 10 additions and 9 deletions

View File

@ -326,6 +326,15 @@ _e_comp_client_update(E_Client *ec)
return post;
}
static void
_e_comp_nocomp_end(E_Comp *c)
{
c->nocomp_want = 0;
E_FREE_FUNC(c->nocomp_delay_timer, ecore_timer_del);
_e_comp_cb_nocomp_end(c);
c->nocomp_ec = NULL;
}
static Eina_Bool
_e_comp_cb_update(E_Comp *c)
{
@ -468,15 +477,7 @@ nocomp:
}
}
else
{
c->nocomp_want = 0;
E_FREE_FUNC(c->nocomp_delay_timer, ecore_timer_del);
if (c->nocomp)
{
_e_comp_cb_nocomp_end(c);
c->nocomp_ec = NULL;
}
}
_e_comp_nocomp_end(c);
return ECORE_CALLBACK_RENEW;
}