diff options
author | duna.oh <duna.oh@samsung.com> | 2024-10-14 20:26:22 +0900 |
---|---|---|
committer | Junkyeong Kim <jk0430.kim@samsung.com> | 2024-11-07 20:31:01 +0900 |
commit | 98d5e5a97ff9623211a962d8100002e3baad3029 (patch) | |
tree | 2d243a5c8206bb88001671e16ff6670d96ecf4fd | |
parent | d4352b23225ab434406acbede9a13069a9664202 (diff) | |
download | efl-util-98d5e5a97ff9623211a962d8100002e3baad3029.tar.gz efl-util-98d5e5a97ff9623211a962d8100002e3baad3029.tar.bz2 efl-util-98d5e5a97ff9623211a962d8100002e3baad3029.zip |
efl_util: fix to call tizen_input_device_release req. on device_remove event
Change-Id: If9fd06dbe549c7f61f2af2d892a9e26a81245b65
-rw-r--r-- | src/efl_util.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/efl_util.c b/src/efl_util.c index 3b94f1f..a4a6ae5 100644 --- a/src/efl_util.c +++ b/src/efl_util.c @@ -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 |