{
//ECORE_UP or ECORE_CANCEL
eel = _ecore_event_evas_lookup(e->multi.device, e->buttons, EINA_FALSE);
+ if (!eel)
+ {
+ WRN("ButtonEvent has no history.");
+ return ECORE_CALLBACK_PASS_ON;
+ }
- if ((!eel) || (eel->state == ECORE_INPUT_UP) || (eel->state == ECORE_INPUT_CANCEL))
+ if ((eel->state == ECORE_INPUT_UP) ||
+ (eel->state == ECORE_INPUT_CANCEL))
{
- if (!eel)
- WRN("ButtonEvent has no history.");
- else
- WRN("ButtonEvent has wrong history. Last state=%d", eel->state);
- return ECORE_CALLBACK_PASS_ON;
+ WRN("ButtonEvent has wrong history. Last state=%d", eel->state);
+ return ECORE_CALLBACK_PASS_ON;
}
}