static Eina_List *_e_mod_split_screen_manager_ec_hook_handlers = NULL;
static Eina_List *_e_mod_split_screen_manager_ec_event_handlers = NULL;
static Eina_List *_e_mod_split_screen_manager_desk_area_hook_handlers = NULL;
+#ifdef _NEED_TO_CHANGE_WITH_DESK_HOOKS
static Eina_List *_e_mod_split_screen_manager_zone_hook_handlers = NULL;
+#endif
static Eina_List *_e_mod_split_screen_region_list = NULL;
static E_Client *_e_mod_split_screen_launcher_ec = NULL;
return;
}
+#ifdef _NEED_TO_CHANGE_WITH_DESK_HOOKS
static void
_e_mod_split_screen_manager_cb_hook_activate(void *data, E_Zone *zone)
{
if (!zone) return;
_e_mod_split_screen_deactivate(zone);
}
-
+#endif
/* e_client events */
static Eina_Bool
_e_mod_split_screen_manager_handler_init(void)
{
E_Desk_Area_Hook *eda_hook;
+#ifdef _NEED_TO_CHANGE_WITH_DESK_HOOKS
E_Zone_Hook *ez_hook;
+#endif
E_LIST_HANDLER_APPEND(_e_mod_split_screen_manager_ec_event_handlers, E_EVENT_CLIENT_ADD, _e_mod_split_screen_manager_cb_ec_add, NULL);
E_LIST_HANDLER_APPEND(_e_mod_split_screen_manager_ec_event_handlers, E_EVENT_CLIENT_REMOVE, _e_mod_split_screen_manager_cb_ec_remove, NULL);
eda_hook = e_desk_area_hook_add(E_DESK_AREA_HOOK_SET_APPID, _e_mod_split_screen_manager_cb_hook_assign_appid, NULL);
if (eda_hook) _e_mod_split_screen_manager_desk_area_hook_handlers = eina_list_append(_e_mod_split_screen_manager_desk_area_hook_handlers, eda_hook);
+#ifdef _NEED_TO_CHANGE_WITH_DESK_HOOKS
ez_hook = e_zone_hook_add(E_ZONE_HOOK_SPLISCREEN_ACTIVATE, _e_mod_split_screen_manager_cb_hook_activate, NULL);
if (ez_hook) _e_mod_split_screen_manager_zone_hook_handlers = eina_list_append(_e_mod_split_screen_manager_zone_hook_handlers, ez_hook);
ez_hook = e_zone_hook_add(E_ZONE_HOOK_SPLISCREEN_DEACTIVATE, _e_mod_split_screen_manager_cb_hook_deactivate, NULL);
if (ez_hook) _e_mod_split_screen_manager_zone_hook_handlers = eina_list_append(_e_mod_split_screen_manager_zone_hook_handlers, ez_hook);
+#endif
if (!_e_mod_split_screen_manager_ec_event_handlers ||
!_e_mod_split_screen_manager_ec_hook_handlers ||