efl_util: fix to call tizen_input_device_release req. on device_remove event 90/320090/1
authorduna.oh <duna.oh@samsung.com>
Mon, 14 Oct 2024 11:26:22 +0000 (20:26 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Thu, 7 Nov 2024 11:31:01 +0000 (20:31 +0900)
Change-Id: If9fd06dbe549c7f61f2af2d892a9e26a81245b65

src/efl_util.c

index 3b94f1fcff67c2bb734273e12823a4556740de71..a4a6ae5d4f30cab81698c3329fc096554b1748e6 100644 (file)
@@ -1203,24 +1203,31 @@ struct _efl_util_inputgen_h
 
 static void
 _cb_device_add(void *data EINA_UNUSED,
-               struct tizen_input_device_manager *tizen_input_device_manager EINA_UNUSED,
+               struct tizen_input_device_manager *tizen_input_device_manager,
                uint32_t serial EINA_UNUSED,
-               const char *identifier EINA_UNUSED,
+               const char *identifier,
                struct tizen_input_device *device,
                struct wl_seat *seat EINA_UNUSED)
 {
-   ;
+   LOGD("device_manager(res_id:%u) device(res_id:%u) is added! (%s)",
+        (unsigned int)wl_proxy_get_id((struct wl_proxy *)tizen_input_device_manager),
+        (unsigned int)wl_proxy_get_id((struct wl_proxy *)device),
+        identifier);
 }
 
 static void
 _cb_device_remove(void *data EINA_UNUSED,
-               struct tizen_input_device_manager *tizen_input_device_manager EINA_UNUSED,
+               struct tizen_input_device_manager *tizen_input_device_manager,
                uint32_t serial  EINA_UNUSED,
-               const char *identifier  EINA_UNUSED,
+               const char *identifier,
                struct tizen_input_device *device,
                struct wl_seat *seat  EINA_UNUSED)
 {
-   ;
+   LOGD("device_manager(res_id:%u) device(res_id:%u) is removed! (%s)",
+        (unsigned int)wl_proxy_get_id((struct wl_proxy *)tizen_input_device_manager),
+        (unsigned int)wl_proxy_get_id((struct wl_proxy *)device),
+        identifier);
+   tizen_input_device_release(device);
 }
 
 static void