Fix indentation 30/276830/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 27 Jun 2022 04:55:57 +0000 (13:55 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 28 Jun 2022 01:24:23 +0000 (10:24 +0900)
Change-Id: I68543626382d52f20c501adc17de6084252ee045
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_input_panel.c
src/e_mod_main.c

index cba7bae..a950dfc 100644 (file)
@@ -54,11 +54,11 @@ struct _E_Input_Panel_Surface
    E_Client *ec;
 
    struct
-   {
-      Ecore_Event_Handler *rot_change_end;
-      Ecore_Event_Handler *buf_change;
-      Ecore_Event_Handler *rot_geometry_set;
-   } eh;
+     {
+        Ecore_Event_Handler *rot_change_end;
+        Ecore_Event_Handler *buf_change;
+        Ecore_Event_Handler *rot_geometry_set;
+     } eh;
 
    Eina_Bool panel;
    Eina_Bool showing;
@@ -83,12 +83,12 @@ struct _E_Input_Panel_Floating_Info
    int before_canvas_y;
 
    struct
-   {
-      int portrait_x;
-      int portrait_y;
-      int landscape_x;
-      int landscape_y;
-   } start_position;
+     {
+        int portrait_x;
+        int portrait_y;
+        int landscape_x;
+        int landscape_y;
+     } start_position;
 };
 
 static E_Input_Panel *g_input_panel = NULL;
@@ -391,25 +391,25 @@ _e_input_panel_init_floating_position(E_Client *ec)
 
    switch (ec->e.state.rot.ang.curr)
      {
-        case 90:
-        case 270:
-           if (!g_floating_info->init_landscape_position)
-             {
-                g_floating_info->start_position.landscape_x = (zh - ec->client.h) / 2;
-                g_floating_info->start_position.landscape_y = (zw - ec->client.w) / 2;
-                g_floating_info->init_landscape_position = EINA_TRUE;
-             }
-           break;
-        case 0:
-        case 180:
-        default:
-           if (!g_floating_info->init_portrait_position)
-             {
-                g_floating_info->start_position.portrait_x = (zw - ec->client.w) / 2;
-                g_floating_info->start_position.portrait_y = (zh - ec->client.h) / 2;
-                g_floating_info->init_portrait_position = EINA_TRUE;
-             }
-           break;
+      case 90:
+      case 270:
+         if (!g_floating_info->init_landscape_position)
+           {
+              g_floating_info->start_position.landscape_x = (zh - ec->client.h) / 2;
+              g_floating_info->start_position.landscape_y = (zw - ec->client.w) / 2;
+              g_floating_info->init_landscape_position = EINA_TRUE;
+           }
+         break;
+      case 0:
+      case 180:
+      default:
+         if (!g_floating_info->init_portrait_position)
+           {
+              g_floating_info->start_position.portrait_x = (zw - ec->client.w) / 2;
+              g_floating_info->start_position.portrait_y = (zh - ec->client.h) / 2;
+              g_floating_info->init_portrait_position = EINA_TRUE;
+           }
+         break;
      }
 }
 
@@ -424,39 +424,39 @@ _e_input_panel_stay_within_screen(E_Client *ec, int x, int y, int *new_x, int *n
 
    switch (ec->e.state.rot.ang.curr)
      {
-        case 90:
-        case 270:
-           if (x < 0)
-             *new_x = 0;
-           else if (x > zh - ec->client.h)
-             *new_x = zh - ec->client.h;
-           else
-             *new_x = x;
-
-           if (y < 0)
-             *new_y = 0;
-           else if (y > zw - ec->client.w)
-             *new_y = zw - ec->client.w;
-           else
-             *new_y = y;
-           break;
-        case 0:
-        case 180:
-        default:
-           if (x < 0)
-             *new_x = 0;
-           else if (x > zw - ec->client.w)
-             *new_x = zw - ec->client.w;
-           else
-             *new_x = x;
-
-           if (y < 0)
-             *new_y = 0;
-           else if (y > zh - ec->client.h)
-             *new_y = zh - ec->client.h;
-           else
-             *new_y = y;
-           break;
+      case 90:
+      case 270:
+         if (x < 0)
+           *new_x = 0;
+         else if (x > zh - ec->client.h)
+           *new_x = zh - ec->client.h;
+         else
+           *new_x = x;
+
+         if (y < 0)
+           *new_y = 0;
+         else if (y > zw - ec->client.w)
+           *new_y = zw - ec->client.w;
+         else
+           *new_y = y;
+         break;
+      case 0:
+      case 180:
+      default:
+         if (x < 0)
+           *new_x = 0;
+         else if (x > zw - ec->client.w)
+           *new_x = zw - ec->client.w;
+         else
+           *new_x = x;
+
+         if (y < 0)
+           *new_y = 0;
+         else if (y > zh - ec->client.h)
+           *new_y = zh - ec->client.h;
+         else
+           *new_y = y;
+         break;
      }
 }
 
@@ -470,54 +470,54 @@ _e_input_panel_convert_floating_position(E_Client *ec, int x, int y, int *new_x,
 
    cur_angle = ec->e.state.rot.ang.curr;
    if ((!g_floating_info->init_portrait_position && (cur_angle == 0 || cur_angle == 180)) ||
-    (!g_floating_info->init_landscape_position && (cur_angle == 90 || cur_angle == 270)))
+       (!g_floating_info->init_landscape_position && (cur_angle == 90 || cur_angle == 270)))
      _e_input_panel_init_floating_position(ec);
 
    e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh);
 
    switch (cur_angle)
      {
-        case 90:
-           if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
-             {
-                *new_x = zh - y - ec->client.h;
-                *new_y = x;
-             }
-           else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
-             {
-                *new_x = y;
-                *new_y = zh - x - ec->client.h;
-             }
-           break;
-        case 180:
-           if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
-             {
-                *new_x = zh - y - ec->client.h;
-                *new_y = zw - x - ec->client.w;
-             }
-           else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
-             {
-                *new_x = zw - x - ec->client.w;
-                *new_y = zh - y - ec->client.h;
-             }
-           break;
-        case 270:
-           if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
-             {
-                *new_x = y;
-                *new_y = zw - x - ec->client.w;
-             }
-           else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
-             {
-                *new_x = zw - y - ec->client.w;
-                *new_y = x;
-             }
-           break;
-        case 0:
-        default:
-           *new_x = x;
-           *new_y = y;
-           break;
+      case 90:
+         if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
+           {
+              *new_x = zh - y - ec->client.h;
+              *new_y = x;
+           }
+         else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
+           {
+              *new_x = y;
+              *new_y = zh - x - ec->client.h;
+           }
+         break;
+      case 180:
+         if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
+           {
+              *new_x = zh - y - ec->client.h;
+              *new_y = zw - x - ec->client.w;
+           }
+         else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
+           {
+              *new_x = zw - x - ec->client.w;
+              *new_y = zh - y - ec->client.h;
+           }
+         break;
+      case 270:
+         if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_ABSOLUTE)
+           {
+              *new_x = y;
+              *new_y = zw - x - ec->client.w;
+           }
+         else if (cur_type == E_INPUT_PANEL_COORDINATE_TYPE_LOGICAL)
+           {
+              *new_x = zw - y - ec->client.w;
+              *new_y = x;
+           }
+         break;
+      case 0:
+      default:
+         *new_x = x;
+         *new_y = y;
+         break;
      }
 }
 
@@ -535,27 +535,27 @@ _e_input_panel_position_set(E_Client *ec, int w, int h)
    /* Get the position of center bottom each angles */
    switch (ec->e.state.rot.ang.curr)
      {
-        case 90:
-           nx = zx + zw - w;
-           ny = zy + (zh - h) / 2;
-           is_portrait = EINA_FALSE;
-           break;
-        case 180:
-           nx = zx + (zw - w) / 2;
-           ny = zy;
-           is_portrait = EINA_TRUE;
-           break;
-        case 270:
-           nx = zx;
-           ny = zy + (zh - h) / 2;
-           is_portrait = EINA_FALSE;
-           break;
-        case 0:
-        default:
-           nx = zx + (zw - w) / 2;
-           ny = zy + zh - h;
-           is_portrait = EINA_TRUE;
-           break;
+      case 90:
+         nx = zx + zw - w;
+         ny = zy + (zh - h) / 2;
+         is_portrait = EINA_FALSE;
+         break;
+      case 180:
+         nx = zx + (zw - w) / 2;
+         ny = zy;
+         is_portrait = EINA_TRUE;
+         break;
+      case 270:
+         nx = zx;
+         ny = zy + (zh - h) / 2;
+         is_portrait = EINA_FALSE;
+         break;
+      case 0:
+      default:
+         nx = zx + (zw - w) / 2;
+         ny = zy + zh - h;
+         is_portrait = EINA_TRUE;
+         break;
      }
 
    if (ec->vkbd.floating)
@@ -729,8 +729,8 @@ _e_input_panel_client_cb_rotation_change_end(void *data, int type, void *event)
      goto end;
 
    if (ips->showing) {
-      LOGI("current angle : %d", ec->e.state.rot.ang.curr);
-      _e_input_panel_position_set(ec, ec->client.w, ec->client.h);
+        LOGI("current angle : %d", ec->e.state.rot.ang.curr);
+        _e_input_panel_position_set(ec, ec->client.w, ec->client.h);
    }
 
 end:
@@ -751,9 +751,9 @@ static bool check_rotation_size(E_Client *ec, int angle, int w, int h)
 
    if ((w != ec->e.state.rot.geom[i].w) ||
        (h != ec->e.state.rot.geom[i].h))
-      return false;
+     return false;
    else
-      return true;
+     return true;
 }
 
 static Eina_Bool
@@ -850,9 +850,9 @@ _e_input_panel_effect_end(void *data, E_Client *ec)
    LOGI("Effect end IPS's ec. ips:%p, ips->ec:%p", ips, ips->ec);
 
    if (!ips->showing)
-      vconf_set_int(VCONFKEY_ISF_INPUT_PANEL_STATE, VCONFKEY_ISF_INPUT_PANEL_STATE_DID_HIDE);
+     vconf_set_int(VCONFKEY_ISF_INPUT_PANEL_STATE, VCONFKEY_ISF_INPUT_PANEL_STATE_DID_HIDE);
 
-  return EINA_TRUE;
+   return EINA_TRUE;
 }
 
 static void
@@ -967,7 +967,7 @@ _e_input_panel_cb_surface_get(struct wl_client *client, struct wl_resource *reso
    E_Comp_Client_Data *cdata = NULL;
 
    LOGI("client %p input_panel %p ec %p resource %p surface_resource %p",
-           client, input_panel, ec, resource, surface_resource);
+        client, input_panel, ec, resource, surface_resource);
 
    if (!input_panel)
      {
@@ -1008,7 +1008,7 @@ _e_input_panel_cb_surface_get(struct wl_client *client, struct wl_resource *reso
      }
 
    if (ec->ignored)
-       e_client_unignore(ec);
+     e_client_unignore(ec);
 
    /* set input panel client properties */
    ec->borderless = EINA_TRUE;
@@ -1201,58 +1201,58 @@ e_input_panel_client_find(E_Client *ec)
 Eina_Bool
 e_input_panel_client_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h)
 {
-    E_Input_Panel_Surface *ips;
-    Eina_List *l;
-    int angle = 0;
-    int zx, zy, zw, zh;
+   E_Input_Panel_Surface *ips;
+   Eina_List *l;
+   int angle = 0;
+   int zx, zy, zw, zh;
 
-    if (!g_input_panel) return EINA_FALSE;
-    if (!x || !y || !w || !h) return EINA_FALSE;
+   if (!g_input_panel) return EINA_FALSE;
+   if (!x || !y || !w || !h) return EINA_FALSE;
 
-    EINA_LIST_FOREACH(g_input_panel->surfaces, l, ips)
-    {
+   EINA_LIST_FOREACH(g_input_panel->surfaces, l, ips)
+     {
         if (!ips || !ips->ec) continue;
         if (ips->ec == ec || !ec)
           {
-            angle = ips->ec->e.state.rot.ang.next < 0 ?
-                    ips->ec->e.state.rot.ang.curr :
-                    ips->ec->e.state.rot.ang.next;
-
-            e_client_base_output_resolution_useful_geometry_get(ips->ec, &zx, &zy, &zw, &zh);
-            switch (angle)
-              {
-               case 90:
-                  *x = zh - ips->ec->y - ips->ec->client.h;
-                  *y = ips->ec->x;
-                  *w = ips->ec->h;
-                  *h = ips->ec->w;
-                  break;
-               case 180:
-                  *x = zh - ips->ec->y - ips->ec->client.h;
-                  *y = zw - ips->ec->x - ips->ec->client.w;
-                  *w = ips->ec->w;
-                  *h = ips->ec->h;
-                  break;
-               case 270:
-                  *x = ips->ec->y;
-                  *y = zw - ips->ec->x - ips->ec->client.w;
-                  *w = ips->ec->h;
-                  *h = ips->ec->w;
-                  break;
-               case 0:
-               default:
-                  *x = ips->ec->x;
-                  *y = ips->ec->y;
-                  *w = ips->ec->w;
-                  *h = ips->ec->h;
-                  break;
-              }
-
-            return EINA_TRUE;
-        }
-    }
-
-    return EINA_FALSE;
+             angle = ips->ec->e.state.rot.ang.next < 0 ?
+                ips->ec->e.state.rot.ang.curr :
+                ips->ec->e.state.rot.ang.next;
+
+             e_client_base_output_resolution_useful_geometry_get(ips->ec, &zx, &zy, &zw, &zh);
+             switch (angle)
+               {
+                case 90:
+                   *x = zh - ips->ec->y - ips->ec->client.h;
+                   *y = ips->ec->x;
+                   *w = ips->ec->h;
+                   *h = ips->ec->w;
+                   break;
+                case 180:
+                   *x = zh - ips->ec->y - ips->ec->client.h;
+                   *y = zw - ips->ec->x - ips->ec->client.w;
+                   *w = ips->ec->w;
+                   *h = ips->ec->h;
+                   break;
+                case 270:
+                   *x = ips->ec->y;
+                   *y = zw - ips->ec->x - ips->ec->client.w;
+                   *w = ips->ec->h;
+                   *h = ips->ec->w;
+                   break;
+                case 0:
+                default:
+                   *x = ips->ec->x;
+                   *y = ips->ec->y;
+                   *w = ips->ec->w;
+                   *h = ips->ec->h;
+                   break;
+               }
+
+             return EINA_TRUE;
+          }
+     }
+
+   return EINA_FALSE;
 }
 
 static Eina_Bool
@@ -1312,25 +1312,25 @@ e_input_panel_init(void)
 void
 e_input_panel_shutdown(void)
 {
-    if (g_input_panel)
-      {
-         if (g_input_panel->resource)
-           {
-              wl_resource_destroy(g_input_panel->resource);
-              g_input_panel->resource = NULL;
-           }
+   if (g_input_panel)
+     {
+        if (g_input_panel->resource)
+          {
+             wl_resource_destroy(g_input_panel->resource);
+             g_input_panel->resource = NULL;
+          }
 
-         if (g_input_panel->global)
-           {
-              wl_global_destroy(g_input_panel->global);
-              g_input_panel->global = NULL;
-           }
+        if (g_input_panel->global)
+          {
+             wl_global_destroy(g_input_panel->global);
+             g_input_panel->global = NULL;
+          }
 
-         E_FREE_FUNC(g_input_panel->idle_enter, ecore_idle_enterer_del);
-      }
+        E_FREE_FUNC(g_input_panel->idle_enter, ecore_idle_enterer_del);
+     }
 
-    if (g_floating_info)
-      E_FREE(g_floating_info);
+   if (g_floating_info)
+     E_FREE(g_floating_info);
 }
 
 static void
@@ -1474,8 +1474,8 @@ e_input_panel_transient_for_set(E_Client *parent)
           }
         else
           {
-              child->icccm.fetch.transient_for = EINA_FALSE;
-              child->icccm.transient_for = 0;
+             child->icccm.fetch.transient_for = EINA_FALSE;
+             child->icccm.transient_for = 0;
           }
         EC_CHANGED(child);
      }
@@ -1510,31 +1510,31 @@ e_input_panel_floating_position_set(int x, int y)
 
    if (!floating_ec || !floating_ips || !g_floating_info) return;
 
-   if(floating_ips->showing)
-      cur_angle = floating_ec->e.state.rot.ang.curr;
+   if (floating_ips->showing)
+     cur_angle = floating_ec->e.state.rot.ang.curr;
    else
-      cur_angle = floating_ec->zone->rot.curr;
+     cur_angle = floating_ec->zone->rot.curr;
 
    LOGI("current angle : %d", cur_angle);
    switch (cur_angle)
      {
-        case 90:
-        case 270:
-           g_floating_info->start_position.landscape_x = x;
-           g_floating_info->start_position.landscape_y = y;
-           g_floating_info->init_landscape_position = EINA_TRUE;
-           break;
-        case 0:
-        case 180:
-        default:
-           g_floating_info->start_position.portrait_x = x;
-           g_floating_info->start_position.portrait_y = y;
-           g_floating_info->init_portrait_position = EINA_TRUE;
-           break;
+      case 90:
+      case 270:
+         g_floating_info->start_position.landscape_x = x;
+         g_floating_info->start_position.landscape_y = y;
+         g_floating_info->init_landscape_position = EINA_TRUE;
+         break;
+      case 0:
+      case 180:
+      default:
+         g_floating_info->start_position.portrait_x = x;
+         g_floating_info->start_position.portrait_y = y;
+         g_floating_info->init_portrait_position = EINA_TRUE;
+         break;
      }
 
-   if(floating_ips->showing)
-      _e_input_panel_position_set(floating_ec, floating_ec->client.w, floating_ec->client.h);
+   if (floating_ips->showing)
+     _e_input_panel_position_set(floating_ec, floating_ec->client.w, floating_ec->client.h);
 }
 
 Eina_Bool
@@ -1581,7 +1581,7 @@ int e_input_panel_is_effect_running(void)
              /*
                 Do we need to check currently effect type?
                 then what flag do we check? ips->ec->visible or ips->showing?
-             */
+              */
              if (ips->ec->visible)
                run_type = 1; // show effect is running
              else
index ce354b5..7b438ee 100644 (file)
@@ -112,16 +112,16 @@ struct _E_Input_Method_Context
 
 #if ENABLE_GRAB_KEYBOARD
    struct
-   {
-      struct wl_resource *resource;
-      Eina_List *handlers;
-      Eina_Bool grabbed;
-      struct xkb_keymap *keymap;
-      struct xkb_state *state;
-      xkb_mod_mask_t mod_depressed, mod_latched, mod_locked;
-      xkb_layout_index_t mod_group;
-      int mod_changed;
-   } kbd;
+     {
+        struct wl_resource *resource;
+        Eina_List *handlers;
+        Eina_Bool grabbed;
+        struct xkb_keymap *keymap;
+        struct xkb_state *state;
+        xkb_mod_mask_t mod_depressed, mod_latched, mod_locked;
+        xkb_layout_index_t mod_group;
+        int mod_changed;
+     } kbd;
 #endif
 };
 
@@ -134,10 +134,10 @@ struct _E_Mod_Text_Input_Shutdown_Cb
 /* This represents the overall input panel's state including the candidate area */
 enum _E_Input_Panel_State
 {
-    E_INPUT_PANEL_STATE_DID_HIDE,
-    E_INPUT_PANEL_STATE_WILL_HIDE,
-    E_INPUT_PANEL_STATE_DID_SHOW,
-    E_INPUT_PANEL_STATE_WILL_SHOW,
+   E_INPUT_PANEL_STATE_DID_HIDE,
+   E_INPUT_PANEL_STATE_WILL_HIDE,
+   E_INPUT_PANEL_STATE_DID_SHOW,
+   E_INPUT_PANEL_STATE_WILL_SHOW,
 };
 
 static E_Input_Method *g_input_method = NULL;
@@ -165,14 +165,14 @@ const int WILL_HIDE_TIMER_INTERVAL = 1.0f;
 
 #undef E_CLIENT_HOOK_APPEND
 #define E_CLIENT_HOOK_APPEND(l, t, cb, d) \
-  do                                      \
-                                        \
-       E_Client_Hook *_h;                 \
-       _h = e_client_hook_add(t, cb, d);  \
-       assert(_h);                        \
-       l = eina_list_append(l, _h);       \
-                                        \
-  while (0)
+   do                                     \
+     {                                    \
+        E_Client_Hook *_h;                \
+        _h = e_client_hook_add(t, cb, d); \
+        assert(_h);                       \
+        l = eina_list_append(l, _h);      \
+     }                                    \
+   while (0)
 
 static void _e_text_input_cb_input_panel_show(struct wl_client *client, struct wl_resource *resource);
 static void _e_text_input_deactivate(E_Text_Input *text_input, E_Input_Method *input_method, Eina_Bool need_focus_out);
@@ -368,7 +368,7 @@ _e_text_input_method_context_keyboard_grab_keyboard_state_update(E_Input_Method_
    else dir = XKB_KEY_UP;
 
    context->kbd.mod_changed =
-     xkb_state_update_key(context->kbd.state, keycode + 8, dir);
+      xkb_state_update_key(context->kbd.state, keycode + 8, dir);
 }
 
 static void
@@ -380,13 +380,13 @@ _e_text_input_method_context_keyboard_grab_keyboard_modifiers_update(E_Input_Met
    if (!context->kbd.state) return;
 
    context->kbd.mod_depressed =
-     xkb_state_serialize_mods(context->kbd.state, XKB_STATE_DEPRESSED);
+      xkb_state_serialize_mods(context->kbd.state, XKB_STATE_DEPRESSED);
    context->kbd.mod_latched =
-     xkb_state_serialize_mods(context->kbd.state, XKB_STATE_MODS_LATCHED);
+      xkb_state_serialize_mods(context->kbd.state, XKB_STATE_MODS_LATCHED);
    context->kbd.mod_locked =
-     xkb_state_serialize_mods(context->kbd.state, XKB_STATE_MODS_LOCKED);
+      xkb_state_serialize_mods(context->kbd.state, XKB_STATE_MODS_LOCKED);
    context->kbd.mod_group =
-     xkb_state_serialize_layout(context->kbd.state, XKB_STATE_LAYOUT_EFFECTIVE);
+      xkb_state_serialize_layout(context->kbd.state, XKB_STATE_LAYOUT_EFFECTIVE);
 
    serial = wl_display_next_serial(e_comp_wl->wl.disp);
    wl_keyboard_send_modifiers(keyboard, serial,
@@ -831,24 +831,24 @@ _e_text_input_method_context_cb_update_candidate_state(struct wl_client *client
    E_Input_Method_Context *context = wl_resource_get_user_data(resource);
    EINA_SAFETY_ON_NULL_RETURN(context);
 
-    LOGI("Candidate State : %d", state);
-    Eina_Bool prev_show_state = g_show_state_candidate;
-    g_show_state_candidate = state;
-    if (g_input_panel_state == E_INPUT_PANEL_STATE_DID_HIDE)
-      prev_show_state = EINA_FALSE;
+   LOGI("Candidate State : %d", state);
+   Eina_Bool prev_show_state = g_show_state_candidate;
+   g_show_state_candidate = state;
+   if (g_input_panel_state == E_INPUT_PANEL_STATE_DID_HIDE)
+     prev_show_state = EINA_FALSE;
 
-    if (!state)
-      {
-         /* If the candidate state has been changed to OFF when panel is not in show state, */
-         if (!g_show_state_candidate && prev_show_state && g_disable_show_panel && g_client && g_text_input)
-            _input_panel_hide(g_client, g_text_input->resource, EINA_FALSE);
-      }
-    else
-      {
-         /* If the candidate state has been changed to ON when panel is not in show state */
-         if (g_show_state_candidate && !prev_show_state && g_disable_show_panel && g_client && g_text_input)
-            _e_text_input_cb_input_panel_show(g_client, g_text_input->resource);
-      }
+   if (!state)
+     {
+        /* If the candidate state has been changed to OFF when panel is not in show state, */
+        if (!g_show_state_candidate && prev_show_state && g_disable_show_panel && g_client && g_text_input)
+          _input_panel_hide(g_client, g_text_input->resource, EINA_FALSE);
+     }
+   else
+     {
+        /* If the candidate state has been changed to ON when panel is not in show state */
+        if (g_show_state_candidate && !prev_show_state && g_disable_show_panel && g_client && g_text_input)
+          _e_text_input_cb_input_panel_show(g_client, g_text_input->resource);
+     }
 }
 
 static void
@@ -916,45 +916,45 @@ static void
 _e_text_input_method_context_cb_filter_key_event_done(struct wl_client *client EINA_UNUSED, struct wl_resource *resource,
                                                       uint32_t serial, uint32_t state)
 {
-    E_Input_Method_Context *context = wl_resource_get_user_data(resource);
-    EINA_SAFETY_ON_NULL_RETURN(context);
+   E_Input_Method_Context *context = wl_resource_get_user_data(resource);
+   EINA_SAFETY_ON_NULL_RETURN(context);
 
-    if ((context->input) && (context->input->resource))
-      wl_text_input_send_filter_key_event_done(context->input->resource,
-                                          serial, state);
+   if ((context->input) && (context->input->resource))
+     wl_text_input_send_filter_key_event_done(context->input->resource,
+                                              serial, state);
 }
 
 static void
 _e_text_input_method_context_cb_update_ise_geometry(struct wl_client *client EINA_UNUSED, struct wl_resource *resource,
-                                                      uint32_t serial, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
+                                                    uint32_t serial, uint32_t x, uint32_t y, uint32_t width, uint32_t height)
 {
-    E_Input_Method_Context *context = wl_resource_get_user_data(resource);
-    EINA_SAFETY_ON_NULL_RETURN(context);
+   E_Input_Method_Context *context = wl_resource_get_user_data(resource);
+   EINA_SAFETY_ON_NULL_RETURN(context);
 
-    if ((context->input) && (context->input->resource) && !(e_input_panel_floating_mode_get()))
-      {
-         _e_text_input_send_input_panel_geometry(context->input->resource, x, y, width, height);
-         g_updated_geometry = EINA_TRUE;
-      }
+   if ((context->input) && (context->input->resource) && !(e_input_panel_floating_mode_get()))
+     {
+        _e_text_input_send_input_panel_geometry(context->input->resource, x, y, width, height);
+        g_updated_geometry = EINA_TRUE;
+     }
 }
 
 static void
 _e_text_input_method_context_cb_reshow_input_panel(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
-    e_input_panel_transient_for_set(client_surface_ec);
-    e_input_panel_wait_update_set(EINA_TRUE);
+   e_input_panel_transient_for_set(client_surface_ec);
+   e_input_panel_wait_update_set(EINA_TRUE);
 }
 
 static void
 _e_text_input_method_context_cb_set_floating_panel(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, uint32_t state)
 {
-    e_input_panel_floating_panel_set(state ? EINA_TRUE : EINA_FALSE);
+   e_input_panel_floating_panel_set(state ? EINA_TRUE : EINA_FALSE);
 }
 
 static void
 _e_text_input_method_context_cb_set_floating_drag_enabled(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, uint32_t enabled)
 {
-    e_input_panel_floating_drag_enabled(enabled ? EINA_TRUE : EINA_FALSE);
+   e_input_panel_floating_drag_enabled(enabled ? EINA_TRUE : EINA_FALSE);
 }
 
 static const struct zwp_input_method_context_v1_interface _e_text_input_method_context_implementation = {
@@ -1174,8 +1174,8 @@ _e_text_input_cb_activate(struct wl_client *client, struct wl_resource *resource
 
         if (!ecore_key_down_handler)
           ecore_key_down_handler = ecore_event_handler_prepend(ECORE_EVENT_KEY_DOWN,
-                                                           _e_mod_ecore_key_down_cb,
-                                                           NULL);
+                                                               _e_mod_ecore_key_down_cb,
+                                                               NULL);
 
         context->resource =
            wl_resource_create(wl_resource_get_client(input_method->resource),
@@ -1333,7 +1333,7 @@ _e_text_input_cb_input_panel_show(struct wl_client *client, struct wl_resource *
              e_input_panel_visibility_change(EINA_TRUE);
              e_input_panel_transient_for_set(client_surface_ec);
           }
-       return;
+        return;
      }
 #endif
 
@@ -1401,11 +1401,12 @@ _e_text_input_cb_input_panel_show(struct wl_client *client, struct wl_resource *
 static void
 _e_text_input_cb_input_panel_hide(struct wl_client *client, struct wl_resource *resource)
 {
-   if (g_show_client == client) {
-      _input_panel_hide(client, resource, EINA_FALSE);
-      g_show_text_input = NULL;
-      g_show_client = NULL;
-   }
+   if (g_show_client == client)
+     {
+        _input_panel_hide(client, resource, EINA_FALSE);
+        g_show_text_input = NULL;
+        g_show_client = NULL;
+     }
 }
 
 static void
@@ -1440,7 +1441,7 @@ _e_text_input_cb_content_type_set(struct wl_client *client EINA_UNUSED, struct w
 
         if (input_method->context->resource)
           zwp_input_method_context_v1_send_content_type(input_method->context->resource,
-                                                    hint, purpose);
+                                                        hint, purpose);
      }
 }
 
@@ -1469,7 +1470,7 @@ _e_text_input_cb_preferred_language_set(struct wl_client *client EINA_UNUSED, st
 
         if (input_method->context->resource)
           zwp_input_method_context_v1_send_preferred_language(input_method->context->resource,
-                                                          language);
+                                                              language);
      }
 }
 
@@ -1506,7 +1507,7 @@ _e_text_input_cb_action_invoke(struct wl_client *client EINA_UNUSED, struct wl_r
 
         if (input_method->context->resource)
           zwp_input_method_context_v1_send_invoke_action(input_method->context->resource,
-                                                     button, index);
+                                                         button, index);
      }
 }
 
@@ -1525,7 +1526,7 @@ _e_text_input_cb_return_key_type_set(struct wl_client *client EINA_UNUSED, struc
 
         if (input_method->context->resource)
           zwp_input_method_context_v1_send_return_key_type(input_method->context->resource,
-                                                       return_key_type);
+                                                           return_key_type);
      }
 }
 
@@ -1544,7 +1545,7 @@ _e_text_input_cb_return_key_disabled_set(struct wl_client *client EINA_UNUSED, s
 
         if (input_method->context->resource)
           zwp_input_method_context_v1_send_return_key_disabled(input_method->context->resource,
-                                                           disabled);
+                                                               disabled);
      }
 }
 
@@ -1563,7 +1564,7 @@ _e_text_input_cb_input_panel_data_set(struct wl_client *client EINA_UNUSED, stru
 
         if (input_method->context->resource)
           zwp_input_method_context_v1_send_input_panel_data(input_method->context->resource,
-                                                        data, length);
+                                                            data, length);
      }
 
    /* Temporarily receiving WILL_HIDE_ACK via input_panel_data, will need for a new wayland protocol */
@@ -1600,7 +1601,7 @@ _e_text_input_cb_bidi_direction_set(struct wl_client *client EINA_UNUSED, struct
 
         if (input_method->context->resource)
           zwp_input_method_context_v1_send_bidi_direction(input_method->context->resource,
-                                                       bidi_direction);
+                                                          bidi_direction);
      }
 }
 
@@ -1637,7 +1638,7 @@ _e_text_input_cb_process_input_device_event(struct wl_client *client EINA_UNUSED
 
         if (input_method->context->resource)
           zwp_input_method_context_v1_send_process_input_device_event(input_method->context->resource,
-                                                                  type, data, length);
+                                                                      type, data, length);
      }
 }
 
@@ -1648,8 +1649,8 @@ _e_text_input_cb_filter_key_event(struct wl_client *client EINA_UNUSED, struct w
                                   uint32_t dev_subclass, uint32_t keycode)
 
 {
-  E_Text_Input *text_input = wl_resource_get_user_data(resource);
-  E_Input_Method *input_method = NULL;
+   E_Text_Input *text_input = wl_resource_get_user_data(resource);
+   E_Input_Method *input_method = NULL;
 
    CHECK_TEXT_INPUT(resource, text_input);
 
@@ -1660,8 +1661,8 @@ _e_text_input_cb_filter_key_event(struct wl_client *client EINA_UNUSED, struct w
    if (input_method && input_method->context && input_method->context->resource)
      {
         zwp_input_method_context_v1_send_filter_key_event(input_method->context->resource,
-                                                      serial, time, keyname, state, modifiers,
-                                                      dev_name, dev_class, dev_subclass, keycode);
+                                                          serial, time, keyname, state, modifiers,
+                                                          dev_name, dev_class, dev_subclass, keycode);
      }
    else
      {
@@ -1836,7 +1837,7 @@ _e_text_input_cb_resource_destroy(struct wl_resource *resource)
      {
         if (text_input->input_panel_visible)
           {
-              _input_panel_hide(g_client, resource, EINA_TRUE);
+             _input_panel_hide(g_client, resource, EINA_TRUE);
           }
 
         g_show_text_input = NULL;
@@ -2280,9 +2281,9 @@ e_modapi_init(E_Module *m)
      LOGW ("Failed to register callback function for H/W keyboard input detection.");
 
    eeze_udev_watch_handler = eeze_udev_watch_add(EEZE_UDEV_TYPE_KEYBOARD,
-                                                EEZE_UDEV_EVENT_REMOVE,
-                                                _e_mod_eeze_udev_watch_cb,
-                                                NULL);
+                                                 EEZE_UDEV_EVENT_REMOVE,
+                                                 _e_mod_eeze_udev_watch_cb,
+                                                 NULL);
    if (!eeze_udev_watch_handler)
      goto err;