Fix indentation 21/322921/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 18 Apr 2025 01:30:48 +0000 (10:30 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 18 Apr 2025 01:30:48 +0000 (10:30 +0900)
Change-Id: Icd80976d4df78bced6eed8c7056bdfe4cd240ed1
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_gesture_events.c
src/e_mod_main.c

index b6a4e9d91478f29ac8501e289663a18518016f51..3fe8675c878e6680b58c2ee9fba6124d882252be 100644 (file)
@@ -46,7 +46,7 @@ _e_gesture_event_queue(int type, void *event)
           memcpy(e_info->event, event, sizeof(Ecore_Event_Key));
      }
    else if (type == ECORE_EVENT_MOUSE_BUTTON_DOWN ||
-       type == ECORE_EVENT_MOUSE_BUTTON_UP)
+            type == ECORE_EVENT_MOUSE_BUTTON_UP)
      {
         e_info->event = E_NEW(Ecore_Event_Mouse_Button, 1);
         e_info->type = type;
@@ -81,7 +81,7 @@ _e_gesture_event_flush(void)
    E_Gesture_Event_Info *data;
 
    if (gesture->event_state == E_GESTURE_EVENT_STATE_IGNORE ||
-      gesture->gesture_events.recognized_gesture) return;
+       gesture->gesture_events.recognized_gesture) return;
    if (gesture->gesture_filter != E_GESTURE_TYPE_ALL) return;
 
    gesture->event_state = E_GESTURE_EVENT_STATE_PROPAGATE;
@@ -418,7 +418,7 @@ _e_gesture_send_edge_swipe(int fingers, int x, int y, int edge)
         bp = x;
      }
    else if (edge == E_GESTURE_EDGE_RIGHT ||
-       edge == E_GESTURE_EDGE_LEFT)
+            edge == E_GESTURE_EDGE_LEFT)
      {
         bp = y;
      }
@@ -760,7 +760,7 @@ _e_gesture_send_edge_drag(int fingers, int x, int y, int edge, int mode)
         bp = edge_drags->start_point.x;
      }
    else if (edge == E_GESTURE_EDGE_RIGHT ||
-       edge == E_GESTURE_EDGE_LEFT)
+            edge == E_GESTURE_EDGE_LEFT)
      {
         bp = edge_drags->start_point.y;
      }
@@ -1418,7 +1418,7 @@ _e_gesture_send_tap(int fingers, int repeats, int cx, int cy,
    E_Event_Gesture_Tap *ev_tap;
 
    GTINF("Send Tap gesture. %d fingers %d repeats to client (%p) with cx=%d and cy=%d\n",
-          fingers, repeats, client, cx, cy);
+         fingers, repeats, client, cx, cy);
    if (client == E_GESTURE_SERVER_CLIENT)
      {
         ev_tap = E_NEW(E_Event_Gesture_Tap, 1);
@@ -1487,7 +1487,7 @@ _e_gesture_timer_tap_interval(void *data)
 
    if (taps->fingers[taps->enabled_finger].repeats[taps->repeats].client)
      {
-       _e_gesture_util_rect_center_axis_get(taps->base_rect, &cur_point.x, &cur_point.y);
+        _e_gesture_util_rect_center_axis_get(taps->base_rect, &cur_point.x, &cur_point.y);
         _e_gesture_send_tap(taps->enabled_finger, taps->repeats,
                             cur_point.x, cur_point.y,
            taps->fingers[taps->enabled_finger].repeats[taps->repeats].client,
@@ -2045,7 +2045,7 @@ _e_gesture_process_palm_cover(int val)
         if (gesture->gesture_events.recognized_gesture)
           {
              GTWRN("Palm Cover recognized_gesture has a value(%d). return",
-              gesture->gesture_events.recognized_gesture);
+                   gesture->gesture_events.recognized_gesture);
              return;
           }
         _e_gesture_send_palm_cover(E_GESTURE_MODE_BEGIN);
index 1ab63c6d3525ff9dd190e5f2027acb85f6385b37..5b608a96f91ff49a85b1fe45006acfc91209f4b8 100644 (file)
@@ -509,9 +509,9 @@ _e_gesture_set_edge_point(int edge_size, int edge, int start_point, int end_poin
 {
    int comp_w = 0, comp_h = 0;
 
-       *sp = *ep = 0;
+   *sp = *ep = 0;
    e_comp_size_get(&comp_w, &comp_h);
-       if (edge_size == E_GESTURE_EDGE_SIZE_PARTIAL)
+   if (edge_size == E_GESTURE_EDGE_SIZE_PARTIAL)
      {
         *sp = start_point;
         *ep = end_point;
@@ -777,9 +777,9 @@ out:
 
 static int
 _e_gesture_ungrab_edge_drag(struct wl_client *client,
-                       struct wl_resource *resource,
-                       uint32_t fingers, uint32_t edge, uint32_t edge_size,
-                       uint32_t start_point, uint32_t end_point)
+                            struct wl_resource *resource,
+                            uint32_t fingers, uint32_t edge, uint32_t edge_size,
+                            uint32_t start_point, uint32_t end_point)
 {
    E_Gesture_Event *gev;
    int ret = TIZEN_GESTURE_ERROR_NONE;
@@ -925,8 +925,8 @@ _e_gesture_grab_tap(struct wl_client *client,
 
 static int
 _e_gesture_ungrab_tap(struct wl_client *client,
-                   struct wl_resource *resource,
-                   uint32_t fingers, uint32_t repeats)
+                      struct wl_resource *resource,
+                      uint32_t fingers, uint32_t repeats)
 {
    int i;
    E_Gesture_Event *gev;
@@ -1190,7 +1190,7 @@ out:
 
 static int
 _e_gesture_deselect_palm_cover(struct wl_client *client, struct wl_resource *resource,
-                             struct wl_resource *surface)
+                               struct wl_resource *surface)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
    Eina_List *l, *l_next;
@@ -1239,8 +1239,8 @@ _e_gesture_server_ungrab_edge_swipe(unsigned int fingers,
 
 static int
 _e_gesture_server_grab_edge_drag(unsigned int fingers,
-                        unsigned int edge, unsigned int edge_size,
-                        unsigned int start_point, unsigned int end_point)
+                                 unsigned int edge, unsigned int edge_size,
+                                 unsigned int start_point, unsigned int end_point)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1251,7 +1251,7 @@ _e_gesture_server_grab_edge_drag(unsigned int fingers,
 
 static int
 _e_gesture_server_ungrab_edge_drag(unsigned int fingers, unsigned int edge, unsigned int edge_size,
-                          unsigned int start_point, unsigned int end_point)
+                                   unsigned int start_point, unsigned int end_point)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1530,9 +1530,9 @@ _e_gesture_deactivate_list_set(struct wl_client *client, struct wl_resource *sur
 
 static int
 _e_gesture_deactivate_set(struct wl_client *client,
-                        struct wl_resource *resource,
-                        struct wl_resource *surface,
-                        uint32_t type)
+                          struct wl_resource *resource,
+                          struct wl_resource *surface,
+                          uint32_t type)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1566,9 +1566,9 @@ _e_gesture_deactivate_set(struct wl_client *client,
 
 static int
 _e_gesture_deactivate_unset(struct wl_client *client,
-                          struct wl_resource *resource,
-                          struct wl_resource *surface,
-                          uint32_t type)
+                            struct wl_resource *resource,
+                            struct wl_resource *surface,
+                            uint32_t type)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1603,9 +1603,9 @@ _e_gesture_deactivate_unset(struct wl_client *client,
 
 static void
 _e_gesture_cb_grab_edge_swipe(struct wl_client *client,
-                   struct wl_resource *resource,
-                   uint32_t fingers, uint32_t edge, uint32_t edge_size,
-                   uint32_t start_point, uint32_t end_point)
+                              struct wl_resource *resource,
+                              uint32_t fingers, uint32_t edge, uint32_t edge_size,
+                              uint32_t start_point, uint32_t end_point)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1621,9 +1621,9 @@ _e_gesture_cb_grab_edge_swipe(struct wl_client *client,
 
 static void
 _e_gesture_cb_ungrab_edge_swipe(struct wl_client *client,
-                           struct wl_resource *resource,
-                           uint32_t fingers, uint32_t edge, uint32_t edge_size,
-                           uint32_t start_point, uint32_t end_point)
+                                struct wl_resource *resource,
+                                uint32_t fingers, uint32_t edge, uint32_t edge_size,
+                                uint32_t start_point, uint32_t end_point)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1639,9 +1639,9 @@ _e_gesture_cb_ungrab_edge_swipe(struct wl_client *client,
 
 static void
 _e_gesture_cb_grab_edge_drag(struct wl_client *client,
-                        struct wl_resource *resource,
-                        uint32_t fingers, uint32_t edge, uint32_t edge_size,
-                        uint32_t start_point, uint32_t end_point)
+                             struct wl_resource *resource,
+                             uint32_t fingers, uint32_t edge, uint32_t edge_size,
+                             uint32_t start_point, uint32_t end_point)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1657,9 +1657,9 @@ _e_gesture_cb_grab_edge_drag(struct wl_client *client,
 
 static void
 _e_gesture_cb_ungrab_edge_drag(struct wl_client *client,
-                          struct wl_resource *resource,
-                          uint32_t fingers, uint32_t edge, uint32_t edge_size,
-                          uint32_t start_point, uint32_t end_point)
+                               struct wl_resource *resource,
+                               uint32_t fingers, uint32_t edge, uint32_t edge_size,
+                               uint32_t start_point, uint32_t end_point)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1675,8 +1675,8 @@ _e_gesture_cb_ungrab_edge_drag(struct wl_client *client,
 
 static void
 _e_gesture_cb_grab_tap(struct wl_client *client,
-                   struct wl_resource *resource,
-                   uint32_t fingers, uint32_t repeats)
+                       struct wl_resource *resource,
+                       uint32_t fingers, uint32_t repeats)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1692,8 +1692,8 @@ _e_gesture_cb_grab_tap(struct wl_client *client,
 
 static void
 _e_gesture_cb_ungrab_tap(struct wl_client *client,
-                   struct wl_resource *resource,
-                   uint32_t fingers, uint32_t repeats)
+                         struct wl_resource *resource,
+                         uint32_t fingers, uint32_t repeats)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1709,7 +1709,7 @@ _e_gesture_cb_ungrab_tap(struct wl_client *client,
 
 static void
 _e_gesture_cb_grab_palm_cover(struct wl_client *client,
-                        struct wl_resource *resource)
+                              struct wl_resource *resource)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1725,7 +1725,7 @@ _e_gesture_cb_grab_palm_cover(struct wl_client *client,
 
 static void
 _e_gesture_cb_ungrab_palm_cover(struct wl_client *client,
-                        struct wl_resource *resource)
+                                struct wl_resource *resource)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1753,8 +1753,8 @@ _e_gesture_cb_select_palm_cover(struct wl_client *client,
 
 static void
 _e_gesture_cb_deselect_palm_cover(struct wl_client *client,
-                                struct wl_resource *resource,
-                                struct wl_resource *surface)
+                                  struct wl_resource *resource,
+                                  struct wl_resource *surface)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1797,9 +1797,9 @@ _e_gesture_cb_destroy(struct wl_client *client, struct wl_resource *resource)
 
 static void
 _e_gesture_cb_shared_grab_edge_swipe(struct wl_client *client,
-                   struct wl_resource *resource,
-                   uint32_t fingers, uint32_t edge, uint32_t edge_size,
-                   uint32_t start_point, uint32_t end_point)
+                                     struct wl_resource *resource,
+                                     uint32_t fingers, uint32_t edge, uint32_t edge_size,
+                                     uint32_t start_point, uint32_t end_point)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1815,9 +1815,9 @@ _e_gesture_cb_shared_grab_edge_swipe(struct wl_client *client,
 
 static void
 _e_gesture_cb_shared_grab_edge_drag(struct wl_client *client,
-                        struct wl_resource *resource,
-                        uint32_t fingers, uint32_t edge, uint32_t edge_size,
-                        uint32_t start_point, uint32_t end_point)
+                                    struct wl_resource *resource,
+                                    uint32_t fingers, uint32_t edge, uint32_t edge_size,
+                                    uint32_t start_point, uint32_t end_point)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1833,8 +1833,8 @@ _e_gesture_cb_shared_grab_edge_drag(struct wl_client *client,
 
 static void
 _e_gesture_cb_shared_grab_tap(struct wl_client *client,
-                   struct wl_resource *resource,
-                   uint32_t fingers, uint32_t repeats)
+                              struct wl_resource *resource,
+                              uint32_t fingers, uint32_t repeats)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1850,7 +1850,7 @@ _e_gesture_cb_shared_grab_tap(struct wl_client *client,
 
 static void
 _e_gesture_cb_shared_grab_palm_cover(struct wl_client *client,
-                        struct wl_resource *resource)
+                                     struct wl_resource *resource)
 {
    int ret = TIZEN_GESTURE_ERROR_NONE;
 
@@ -1897,7 +1897,7 @@ _e_gesture_cb_bind(struct wl_client *client, void *data, uint32_t version, uint3
      {
         GTERR("Failed to create resource ! (version :%d, id:%d)\n", version, id);
         wl_client_post_no_memory(client);
-        return;
+        return;
      }
 
    wl_resource_set_implementation(resource, &_e_gesture_implementation, NULL, NULL);