uid_t uid;
pid_t pid;
mmi_state state;
+ bool has_focus;
rpc_port_focus_event_h focus_cb_h;
rpc_port_state_change_event_h state_change_cb_h;
goto err;
}
-
if (!eina_hash_del(_client_hash, sender, mc))
{
LOGE("Failed to remove client info using sender(=%s) !\n", sender);
return client->state;
}
+bool
+client_manager_set_client_has_focus(mmi_client *client, bool has_focus)
+{
+ if (!client)
+ return false;
+
+ client->has_focus = has_focus;
+ return client->has_focus;
+}
+
+bool
+client_manager_get_client_has_focus(mmi_client *client)
+{
+ if (!client)
+ return false;
+
+ return client->has_focus;
+}
+
static void
_cleanup_client_hash(void)
{
int client_manager_get_client_pid(mmi_client *client);
mmi_state client_manager_set_client_state(mmi_client *client, mmi_state state);
mmi_state client_manager_get_client_state(mmi_client *client);
+bool client_manager_set_client_has_focus(mmi_client *client, bool has_focus);
+bool client_manager_get_client_has_focus(mmi_client *client);
void *client_manager_set_client_focus_cb_handle(mmi_client *client, void *focus_cb_h);
void *client_manager_get_client_focus_cb_handle(mmi_client *client);