Send destroy message to ISF panel only for focused objects 05/232805/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Thu, 7 May 2020 12:06:52 +0000 (21:06 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Thu, 7 May 2020 12:08:51 +0000 (21:08 +0900)
Change-Id: I34f3bf72ce9d8d047341817b602617a5d124e432

src/e_mod_main.c

index 5e4f1b53c008962b0c1415847a0d83921db50935..11ced635ffbdbdfb0aa07161daf7ceb773c8c0b5 100644 (file)
@@ -2079,7 +2079,8 @@ _e_text_input_cb_destroy(struct wl_client *client, struct wl_resource *resource)
     if ((!input_method->context) || (!input_method->context->resource))
       _context_created = _e_text_input_method_create_context(client, input_method, text_input, EINA_FALSE);
 
-    if (input_method->resource && input_method->context && input_method->context->resource)
+    if (text_input == g_text_input &&
+      input_method->resource && input_method->context && input_method->context->resource)
       wl_input_method_send_destroy(input_method->resource, input_method->context->resource);
 
     if (_context_created)