e_client_raise(ec);
if (ec->shaded || ec->shading)
e_client_unshade(ec, ec->shade_dir);
+#ifdef REFACTOR_FOCUS_POLICY
+ // This code will be executed at E_CLIENT_HOOK_ACTIVATE_DONE callback at e_focus_policy_history.c
+#else
if (!ec->lock_focus_out)
{
E_Client *focus_ec = NULL;
e_client_focus_latest_set(focus_ec);
}
}
+#endif
if (!e_client_desk_iconify_skip_get(ec))
{
}
static void
+_focus_policy_history_hook_cb_client_activate_done(void *data, E_Client *ec)
+{
+ // TODO:
+}
+
+static void
_focus_policy_history_hook_cb_client_eval_end(void *data, E_Client *ec)
{
// TODO:
E_LIST_HOOK_APPEND(history_policy->ec_hooks, E_CLIENT_HOOK_FOCUS_UNSET, _focus_policy_history_hook_cb_client_focus_unset, history_policy);
E_LIST_HOOK_APPEND(history_policy->ec_hooks, E_CLIENT_HOOK_FOCUS_DEFER_SET, _focus_policy_history_hook_cb_client_focus_defer_set, history_policy);
E_LIST_HOOK_APPEND(history_policy->ec_hooks, E_CLIENT_HOOK_FOCUS_LATEST_SET, _focus_policy_history_hook_cb_client_focus_latest_set, history_policy);
+ E_LIST_HOOK_APPEND(history_policy->ec_hooks, E_CLIENT_HOOK_ACTIVATE_DONE, _focus_policy_history_hook_cb_client_activate_done, history_policy);
E_LIST_HOOK_APPEND(history_policy->ec_hooks, E_CLIENT_HOOK_EVAL_END, _focus_policy_history_hook_cb_client_eval_end, history_policy);
// e_comp_object hooks