MODALITY_PROVIDER_CAP_VISION_EVENT
};
-mmi_client *_prev_focus_client = NULL;
mmi_client *_focus_client = NULL;
mmi_state _prev_state = MMI_STATE_NONE;
mmi_state _state = MMI_STATE_NONE;
return ECORE_CALLBACK_PASS_ON;
}
- if (ev->cur_focus)
+ if (!ev->cur_focus && !ev->new_focus){
+ state = _state;
+ _state = MMI_STATE_NONE;
+ }
+ else if (ev->cur_focus)
{
//Set op_mode to MODALITY_PROVIDER_MODE_DROP_EVENT
state = client_manager_get_client_state(ev->cur_focus);
LOGI("state=%d, ev->cur_focus(%p) !\n", state, ev->cur_focus);
}
- else if (_focus_client)
- {
- //Set op_mode to MODALITY_PROVIDER_MODE_DROP_EVENT
- state = client_manager_get_client_state(_focus_client);
- LOGI("state=%d, _focus_client(%p) !\n", state, _focus_client);
- }
-
- if (state == MMI_STATE_NONE)
- {
- state = _state;
- _state = MMI_STATE_NONE;
- }
if (state != MMI_STATE_NONE)
{
}
}
- _prev_focus_client = ev->cur_focus;
_focus_client = ev->new_focus;
return ECORE_CALLBACK_PASS_ON;