Modified to compare show_req_ctx with text_input when calling the input_panel_hide() 63/117763/2
authorInHong Han <inhong1.han@samsung.com>
Tue, 7 Mar 2017 09:58:38 +0000 (18:58 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 7 Mar 2017 11:08:30 +0000 (20:08 +0900)
Change-Id: Ibe4f7246e960beaec1eedfad677f6acd40b986b0

src/e_mod_main.c

index a8a5ca5..113aa77 100644 (file)
@@ -1740,24 +1740,20 @@ _e_text_input_cb_resource_destroy(struct wl_resource *resource)
         return;
      }
 
-   if (g_text_input == text_input)
+   if (g_show_text_input == text_input)
      {
         if (text_input->input_panel_visibile)
           {
-             if (g_client)
-               _input_panel_hide(g_client, resource, EINA_TRUE);
+              _input_panel_hide(g_client, resource, EINA_TRUE);
           }
 
-        g_text_input = NULL;
-        g_client = NULL;
+        g_show_text_input = NULL;
      }
 
-   if (text_input == g_show_text_input)
-     g_show_text_input = NULL;
-
-   if (g_text_input == NULL && text_input->input_panel_visibile)
+   if (g_text_input == text_input)
      {
-        _input_panel_hide(NULL, resource, EINA_TRUE);
+        g_text_input = NULL;
+        g_client = NULL;
      }
 
    EINA_LIST_FREE(text_input->input_methods, input_method)