modality_keyboard: fix not to create MMI_PROVIDER_EVENT_KEY type newly 94/264094/1
authorSung-Jin Park <sj76.park@samsung.com>
Wed, 8 Sep 2021 04:56:19 +0000 (13:56 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Sep 2021 11:26:43 +0000 (20:26 +0900)
Change-Id: I89f0ecaa5ab5b9a758fe10d2ee49072bf9a6ac1b
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/modules/modality_keyboard/wayland-input.c

index 74c09e2..54c7225 100644 (file)
@@ -47,8 +47,6 @@ struct xkb_keymap *keymap;
 
 Ecore_Fd_Handler *fd_hdl;
 
-int MMI_PROVIDER_EVENT_KEY = -1;
-
 typedef struct tizen_keyrouter_notify tizen_keyrouter_notify_t;
 struct tizen_keyrouter_notify
 {
@@ -291,6 +289,8 @@ _input_add_key_event(unsigned int keycode, unsigned int state, unsigned int time
        }
        else
                LOGD("No matched keyname from keycode = %d\n", keycode);
+
+       LOGI("MMI_PROVIDER_EVENT_KEY has been added !\n");
 }
 
 static void
@@ -607,27 +607,15 @@ void _keymap_shutdown(void)
        if(keymap) xkb_map_unref(keymap);
 }
 
-void _input_event_init(void)
-{
-       MMI_PROVIDER_EVENT_KEY = ecore_event_type_new();
-}
-
-void _input_event_shutdown(void)
-{
-       MMI_PROVIDER_EVENT_KEY = -1;
-}
-
 void wayland_input_init(void)
 {
-       _input_event_init();
        _wl_init();
        _keygrab_init();
 }
 
 void wayland_input_shutdown(void)
 {
-       _input_event_shutdown();
        _wl_shutdown();
        _keymap_shutdown();
        _xkb_context_shutdown();
-}
\ No newline at end of file
+}