split_screen_manager: block the splitscreen activate/deactivate code 36/301236/1
authorSooChan Lim <sc1.lim@samsung.com>
Sun, 12 Nov 2023 01:00:24 +0000 (10:00 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Sun, 12 Nov 2023 01:00:24 +0000 (10:00 +0900)
The splitscreen activate/deactivate at e_zone will be changed into
splitscreen activate/deactivate at e_desk. It will be used later.

Change-Id: If321b0d935b10775c12dbc2a8d202c52149f1caa

src/splitscreen/e_mod_split_screen_manager.c

index c441503..c50767d 100644 (file)
@@ -34,7 +34,9 @@ enum _E_Mod_Split_Screen_Manager_Hint_Type
 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;
@@ -154,6 +156,7 @@ _e_mod_split_screen_manager_cb_hook_assign_appid(void *data EINA_UNUSED, E_Desk_
    return;
 }
 
+#ifdef _NEED_TO_CHANGE_WITH_DESK_HOOKS
 static void
 _e_mod_split_screen_manager_cb_hook_activate(void *data, E_Zone *zone)
 {
@@ -167,7 +170,7 @@ _e_mod_split_screen_manager_cb_hook_deactivate(void *data, E_Zone *zone)
    if (!zone) return;
    _e_mod_split_screen_deactivate(zone);
 }
-
+#endif
 
 /* e_client events */
 static Eina_Bool
@@ -600,7 +603,9 @@ 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);
@@ -610,11 +615,13 @@ _e_mod_split_screen_manager_handler_init(void)
    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 ||