Hide input panel in case of foreground program crash 32/97132/2
authorLi Zhang <li2012.zhang@samsung.com>
Fri, 11 Nov 2016 08:17:08 +0000 (16:17 +0800)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 14 Nov 2016 04:49:53 +0000 (13:49 +0900)
Change-Id: Id4ebe872eb83f1584ec2733ac6289468bbf317dc

src/e_mod_main.c

index b41bd693155de8711eb82e51cedbf21d70f7b303..af4604ab7aa504abe28117daaf90f19488a403f0 100644 (file)
@@ -1681,6 +1681,12 @@ _e_text_input_cb_resource_destroy(struct wl_resource *resource)
         g_client = NULL;
      }
 
+   if (g_text_input == NULL && text_input->input_panel_visibile)
+     {
+        e_input_panel_visibility_change(EINA_FALSE);
+        g_input_panel_state = E_INPUT_PANEL_STATE_DID_HIDE;
+     }
+
    EINA_LIST_FREE(text_input->input_methods, input_method)
      {
         _e_text_input_deactivate(text_input, input_method);