_focus_policy_history_focused_ec_get(E_Focus_Policy_Impl *impl)
{
E_Focus_Policy_History *history_policy;
+ E_Client *focused_ec = NULL;
history_policy = (E_Focus_Policy_History *)impl;
EINA_SAFETY_ON_NULL_RETURN_VAL(history_policy, NULL);
//E_FOCUS_HISTORY_TRACE(history_policy, NULL);
- return history_policy->focused_ec;
+ g_mutex_lock(&history_policy->focused_ec_mutex);
+ focused_ec = history_policy->focused_ec;
+ g_mutex_unlock(&history_policy->focused_ec_mutex);
+
+ return focused_ec;
}
static Eina_Bool