e_input: intialze e_comp_input at e_input_init 28/312728/2
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 13 Jun 2024 09:12:55 +0000 (18:12 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 13 Jun 2024 09:42:03 +0000 (09:42 +0000)
move it from e_comp_wl_input to e_input_init.

Change-Id: I6df068ce9ccff7a45498c6298559777b40569fde

src/bin/inputmgr/e_input.c
src/bin/server/e_comp_wl_input.c

index acc4b93..a2b8705 100644 (file)
@@ -5,6 +5,7 @@
 #include "e_comp_wl_input_intern.h"
 #include "e_comp_wl_intern.h"
 #include "e_utils_intern.h"
+#include "e_comp_input_intern.h"
 
 #include <Ecore_Input_Evas.h>
 #include <cpu-boosting.h>
@@ -153,6 +154,8 @@ e_input_init(Ecore_Evas *ee)
      }
    eina_log_domain_level_set("e_input", EINA_LOG_LEVEL_INFO);
 
+   e_comp_input_init();
+
    E_INPUT_EVENT_SEAT_ADD = ecore_event_type_new();
    E_EVENT_INPUT_ENABLED = ecore_event_type_new();
    E_EVENT_INPUT_DISABLED = ecore_event_type_new();
@@ -304,6 +307,8 @@ e_input_shutdown(void)
      eina_stringshare_del(e_input->input_base_dir);
    e_input_device_close(e_input->dev);
 
+   e_comp_input_shutdown();
+
    free(e_input);
 
    ecore_event_evas_shutdown();
index 62faf77..55c6530 100644 (file)
@@ -1560,8 +1560,6 @@ e_comp_wl_input_init(void)
    if (!e_comp_wl->seat.name)
      e_comp_wl->seat.name = "default";
 
-   e_comp_input_init();
-
    dont_set_e_input_keymap = getenv("NO_E_INPUT_KEYMAP_CACHE") ? EINA_TRUE : EINA_FALSE;
    dont_use_xkb_cache = getenv("NO_KEYMAP_CACHE") ? EINA_TRUE : EINA_FALSE;
 
@@ -1718,8 +1716,6 @@ e_comp_wl_input_shutdown(void)
    if (e_comp_wl->xkb.context)
      xkb_context_unref(e_comp_wl->xkb.context);
 
-   e_comp_input_shutdown();
-
    /* destroy the global relative pointer resource */
    if (e_comp_wl->relative_ptr.global)
      wl_global_destroy(e_comp_wl->relative_ptr.global);