Fix indentation 50/244850/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 25 Sep 2020 05:40:37 +0000 (14:40 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 25 Sep 2020 05:40:37 +0000 (14:40 +0900)
Change-Id: Ic675135b2c0d29563c2305a499ac132afd29dd25
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_main.c

index 763ab81..8e092d5 100644 (file)
@@ -1102,6 +1102,7 @@ _e_text_input_method_context_cb_reshow_input_panel(struct wl_client *client EINA
     e_input_panel_transient_for_set(client_surface_ec);
     e_input_panel_wait_update_set(EINA_TRUE);
 }
+
 static const struct wl_input_method_context_interface _e_text_input_method_context_implementation = {
      _e_text_input_method_context_cb_destroy,
      _e_text_input_method_context_cb_string_commit,
@@ -2108,40 +2109,40 @@ _e_text_input_cb_resource_destroy(struct wl_resource *resource)
 static void
 _e_text_input_cb_destroy(struct wl_client *client, struct wl_resource *resource)
 {
-    E_Text_Input *text_input = wl_resource_get_user_data(resource);
-    E_Input_Method *input_method = NULL;
-    Eina_Bool _context_created = EINA_FALSE;
+   E_Text_Input *text_input = wl_resource_get_user_data(resource);
+   E_Input_Method *input_method = NULL;
+   Eina_Bool _context_created = EINA_FALSE;
 
-    if (!text_input)
-      {
-         WTI_WARNING(resource,
-                     WL_DISPLAY_ERROR_INVALID_OBJECT,
-                     "No Text Input For Resource");
-         return;
-      }
+   if (!text_input)
+     {
+        WTI_WARNING(resource,
+                    WL_DISPLAY_ERROR_INVALID_OBJECT,
+                    "No Text Input For Resource");
+        return;
+     }
 
-    if (g_input_method && g_input_method->resource)
-      input_method = wl_resource_get_user_data(g_input_method->resource);
+   if (g_input_method && g_input_method->resource)
+     input_method = wl_resource_get_user_data(g_input_method->resource);
 
-    if (!input_method)
-      {
-         WTI_WARNING(resource,
-                     WL_DISPLAY_ERROR_INVALID_OBJECT,
-                     "No Input Method For Seat");
-         return;
-      }
+   if (!input_method)
+     {
+        WTI_WARNING(resource,
+                    WL_DISPLAY_ERROR_INVALID_OBJECT,
+                    "No Input Method For Seat");
+        return;
+     }
 
-    LOGD("text_input : %p, input_method : %p, resource : %p", text_input, input_method, resource);
+   LOGD("text_input : %p, input_method : %p, resource : %p", text_input, input_method, 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->context) || (!input_method->context->resource))
+     _context_created = _e_text_input_method_create_context(client, input_method, text_input, EINA_FALSE);
 
-    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 (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)
-      _e_text_input_deactivate(text_input, input_method, EINA_FALSE);
+   if (_context_created)
+     _e_text_input_deactivate(text_input, input_method, EINA_FALSE);
 }
 
 static const struct wl_text_input_interface _e_text_input_implementation = {