e_input_backend: Fix issue input thread occupies 100% of the CPU 27/318127/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 13 Jan 2025 07:25:33 +0000 (16:25 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 13 Jan 2025 08:27:25 +0000 (17:27 +0900)
Change-Id: I4fd6bd67d7bf1387415621734812a54bec437411
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/bin/inputmgr/e_input_backend.c

index efcc128d74f988d63a121b49fa0b9183e15c1a3e..acbafb2e2b1e2eff9cb9300cc312c6abb5af9194 100644 (file)
@@ -1284,6 +1284,13 @@ input_thread_start(void *data, Ecore_Thread *th)
    TSM("[WM] Skip sending start-up completion. (no systemd)");
 #endif
 
+   /* enable this input */
+   if (!e_input_backend_enable_input(input))
+     {
+        ERR("Failed to enable input");
+        return;
+     }
+
    //create a context
    context = g_main_context_new();
    g_main_context_push_thread_default(context);