res = e_config->focus_policy_ext;
if (previous_policy != res)
{
+#ifdef REFACTOR_FOCUS_POLICY
+ E_Zone *zone = e_zone_current_get();
+ if (zone && zone->focus)
+ {
+ e_focus_del(zone->focus);
+ zone->focus = e_focus_new(zone, res);
+ if (!zone->focus)
+ ERR("Failed to create E_Focus.");
+ }
+#else
e_client_focus_defer_clear();
+#endif
changed = EINA_TRUE;
}
static Eldbus_Message *
_e_info_server_cb_focus_history(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldbus_Message *msg)
{
- Eldbus_Message *reply;
+ Eldbus_Message *reply = NULL;
+#ifdef REFACTOR_FOCUS_POLICY
+ // TODO: Get the string value for debugging from e_focus_policy_histoy.c and reply it.
+ // Eldbus_Message_Iter *str = e_focus_policy_history_debug_focus_stack_get();
+ // eldbus_message_iter_arguments_append(array, "(ubbbs)", &str);
+#else
Eldbus_Message_Iter *iter, *array;
Eina_List *focus_stack = NULL, *l = NULL;
E_Client *focused = NULL, *ec = NULL;
eldbus_message_iter_container_close(array, str);
}
eldbus_message_iter_container_close(iter, array);
-
+#endif
return reply;
}