cosmetic: Whitespace cleanup of wayland client files
authorBryce Harrington <bryce@osg.samsung.com>
Tue, 24 Feb 2015 22:34:20 +0000 (17:34 -0500)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 24 Feb 2015 22:34:20 +0000 (17:34 -0500)
Summary:
cosmetic: Cleanup whitespace for wayland compositor

There is excess trailing whitespace in several of the files for the
wayland implementation.  These patches attempt to apply the spacing
rules for Enlightenment as documented at:
https://phab.enlightenment.org/w/coding_convention/

The whitespace rules are applied using the following emacs tabbing
settings:

 (defun start-efl-c-mode ()
  "C mode with adjusted defaults for use with Enlightenment
  development."
  (interactive)
  (c-mode)
  (c-set-style "gnu")
  (setq tab-width 8)
  (setq indent-tabs-mode nil)
  (setq c-basic-offset 3)
  (setq defun-block-intro 3)
  (setq statement-block-intro 3)
  (setq case-label 1)
  (setq statement-case-intro 3)
 )

This patchset also eliminates all tabs in favor of whitespace, as per
the coding style rules.

Reviewers: zmike, cedric, devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2048

src/bin/e_comp_wl.c
src/bin/e_comp_wl.h
src/modules/wl_desktop_shell/e_desktop_shell_protocol.c
src/modules/wl_desktop_shell/e_desktop_shell_protocol.h
src/modules/wl_desktop_shell/e_mod_main.c

index e9b31a9..c0605d8 100644 (file)
    if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) return
 
 /* Resource Data Mapping: (wl_resource_get_user_data)
- * 
+ *
  * wl_surface == e_pixmap
  * wl_region == eina_tiler
  * wl_subsurface == e_client
- * 
+ *
  */
 
 static void _e_comp_wl_subsurface_parent_commit(E_Client *ec, Eina_Bool parent_synchronized);
@@ -29,7 +29,7 @@ static Ecore_Idle_Enterer *_client_idler = NULL;
 static double _last_event_time = 0.0;
 
 /* local functions */
-static void 
+static void
 _e_comp_wl_focus_down_set(E_Client *ec)
 {
    Ecore_Window win = 0;
@@ -39,7 +39,7 @@ _e_comp_wl_focus_down_set(E_Client *ec)
    e_bindings_wheel_grab(E_BINDING_CONTEXT_WINDOW, win);
 }
 
-static void 
+static void
 _e_comp_wl_focus_check(E_Comp *comp)
 {
    E_Client *ec;
@@ -50,13 +50,13 @@ _e_comp_wl_focus_check(E_Comp *comp)
      e_grabinput_focus(comp->ee_win, E_FOCUS_METHOD_PASSIVE);
 }
 
-static void 
+static void
 _e_comp_wl_log_cb_print(const char *format, va_list args)
 {
    EINA_LOG_DOM_INFO(e_log_dom, format, args);
 }
 
-static Eina_Bool 
+static Eina_Bool
 _e_comp_wl_cb_read(void *data, Ecore_Fd_Handler *hdlr EINA_UNUSED)
 {
    E_Comp_Data *cdata;
@@ -69,7 +69,7 @@ _e_comp_wl_cb_read(void *data, Ecore_Fd_Handler *hdlr EINA_UNUSED)
    return ECORE_CALLBACK_RENEW;
 }
 
-static void 
+static void
 _e_comp_wl_cb_prepare(void *data, Ecore_Fd_Handler *hdlr EINA_UNUSED)
 {
    E_Comp_Data *cdata;
@@ -80,7 +80,7 @@ _e_comp_wl_cb_prepare(void *data, Ecore_Fd_Handler *hdlr EINA_UNUSED)
    wl_display_flush_clients(cdata->wl.disp);
 }
 
-static Eina_Bool 
+static Eina_Bool
 _e_comp_wl_cb_module_idle(void *data)
 {
    E_Comp_Data *cdata;
@@ -98,7 +98,7 @@ _e_comp_wl_cb_module_idle(void *data)
      {
         e_module_enable(mod);
 
-        /* FIXME: NB: 
+        /* FIXME: NB:
          * Do we need to dispatch pending wl events here ?? */
 
         return ECORE_CALLBACK_CANCEL;
@@ -107,7 +107,7 @@ _e_comp_wl_cb_module_idle(void *data)
    return ECORE_CALLBACK_RENEW;
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_show(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
    E_Client *ec, *tmp;
@@ -117,7 +117,7 @@ _e_comp_wl_evas_cb_show(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EIN
 
    if (!ec->override) e_hints_window_visible_set(ec);
 
-   if ((!ec->override) && (!ec->re_manage) && (!ec->comp_data->reparented) && 
+   if ((!ec->override) && (!ec->re_manage) && (!ec->comp_data->reparented) &&
        (!ec->comp_data->need_reparent))
      {
         ec->comp_data->need_reparent = EINA_TRUE;
@@ -151,7 +151,7 @@ _e_comp_wl_evas_cb_show(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EIN
      evas_object_show(tmp->frame);
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_hide(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
    E_Client *ec, *tmp;
@@ -163,7 +163,7 @@ _e_comp_wl_evas_cb_hide(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EIN
      evas_object_hide(tmp->frame);
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_mouse_in(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
    E_Client *ec;
@@ -185,13 +185,13 @@ _e_comp_wl_evas_cb_mouse_in(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj
      {
         if (!e_comp_wl_input_pointer_check(res)) continue;
         if (wl_resource_get_client(res) != wc) continue;
-        wl_pointer_send_enter(res, serial, ec->comp_data->surface, 
-                              wl_fixed_from_int(ev->canvas.x), 
+        wl_pointer_send_enter(res, serial, ec->comp_data->surface,
+                              wl_fixed_from_int(ev->canvas.x),
                               wl_fixed_from_int(ev->canvas.y));
      }
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_mouse_out(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
    E_Client *ec;
@@ -224,7 +224,7 @@ _e_comp_wl_evas_cb_mouse_out(void *data, Evas *evas EINA_UNUSED, Evas_Object *ob
      }
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_mouse_move(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
 {
    E_Client *ec;
@@ -239,9 +239,9 @@ _e_comp_wl_evas_cb_mouse_move(void *data, Evas *evas EINA_UNUSED, Evas_Object *o
    if (e_object_is_del(E_OBJECT(ec))) return;
    if (e_client_util_ignored_get(ec)) return;
 
-   ec->comp->wl_comp_data->ptr.x = 
+   ec->comp->wl_comp_data->ptr.x =
      wl_fixed_from_int(ev->cur.canvas.x - ec->client.x);
-   ec->comp->wl_comp_data->ptr.y = 
+   ec->comp->wl_comp_data->ptr.y =
      wl_fixed_from_int(ev->cur.canvas.y - ec->client.y);
 
    if (!ec->comp_data->surface) return;
@@ -251,13 +251,13 @@ _e_comp_wl_evas_cb_mouse_move(void *data, Evas *evas EINA_UNUSED, Evas_Object *o
      {
         if (!e_comp_wl_input_pointer_check(res)) continue;
         if (wl_resource_get_client(res) != wc) continue;
-        wl_pointer_send_motion(res, ev->timestamp, 
-                               ec->comp->wl_comp_data->ptr.x, 
+        wl_pointer_send_motion(res, ev->timestamp,
+                               ec->comp->wl_comp_data->ptr.x,
                                ec->comp->wl_comp_data->ptr.y);
      }
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_mouse_down(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
 {
    E_Client *ec;
@@ -299,12 +299,12 @@ _e_comp_wl_evas_cb_mouse_down(void *data, Evas *evas EINA_UNUSED, Evas_Object *o
      {
         if (!e_comp_wl_input_pointer_check(res)) continue;
         if (wl_resource_get_client(res) != wc) continue;
-        wl_pointer_send_button(res, serial, ev->timestamp, btn, 
+        wl_pointer_send_button(res, serial, ev->timestamp, btn,
                                WL_POINTER_BUTTON_STATE_PRESSED);
      }
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_mouse_up(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
 {
    E_Client *ec;
@@ -346,12 +346,12 @@ _e_comp_wl_evas_cb_mouse_up(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj
      {
         if (!e_comp_wl_input_pointer_check(res)) continue;
         if (wl_resource_get_client(res) != wc) continue;
-        wl_pointer_send_button(res, serial, ev->timestamp, btn, 
+        wl_pointer_send_button(res, serial, ev->timestamp, btn,
                                WL_POINTER_BUTTON_STATE_RELEASED);
      }
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_mouse_wheel(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event)
 {
    E_Client *ec;
@@ -388,7 +388,7 @@ _e_comp_wl_evas_cb_mouse_wheel(void *data, Evas *evas EINA_UNUSED, Evas_Object *
      }
 }
 
-static void 
+static void
 _e_comp_wl_client_priority_adjust(int pid, int set, int adj, Eina_Bool use_adj, Eina_Bool adj_child, Eina_Bool do_child)
 {
    Eina_List *files;
@@ -433,26 +433,26 @@ _e_comp_wl_client_priority_adjust(int pid, int set, int adj, Eina_Bool use_adj,
       }
 }
 
-static void 
+static void
 _e_comp_wl_client_priority_raise(E_Client *ec)
 {
    if (ec->netwm.pid <= 0) return;
    if (ec->netwm.pid == getpid()) return;
-   _e_comp_wl_client_priority_adjust(ec->netwm.pid, 
-                                     e_config->priority - 1, -1, 
+   _e_comp_wl_client_priority_adjust(ec->netwm.pid,
+                                     e_config->priority - 1, -1,
                                      EINA_FALSE, EINA_TRUE, EINA_FALSE);
 }
 
-static void 
+static void
 _e_comp_wl_client_priority_normal(E_Client *ec)
 {
    if (ec->netwm.pid <= 0) return;
    if (ec->netwm.pid == getpid()) return;
-   _e_comp_wl_client_priority_adjust(ec->netwm.pid, e_config->priority, 1, 
+   _e_comp_wl_client_priority_adjust(ec->netwm.pid, e_config->priority, 1,
                                      EINA_FALSE, EINA_TRUE, EINA_FALSE);
 }
 
-static Eina_Bool 
+static Eina_Bool
 _e_comp_wl_client_cb_idle(void *data EINA_UNUSED)
 {
    E_Client *ec;
@@ -467,7 +467,7 @@ _e_comp_wl_client_cb_idle(void *data EINA_UNUSED)
         if ((ec->post_resize) && (!ec->maximized))
           {
              if (cdata->shell.configure_send)
-               cdata->shell.configure_send(cdata->shell.surface, 
+               cdata->shell.configure_send(cdata->shell.surface,
                                            ec->comp->wl_comp_data->resize.edges,
                                            ec->client.w, ec->client.h);
           }
@@ -480,7 +480,7 @@ _e_comp_wl_client_cb_idle(void *data EINA_UNUSED)
    return EINA_FALSE;
 }
 
-static void 
+static void
 _e_comp_wl_client_idler_add(E_Client *ec)
 {
    if (!ec) return;
@@ -517,7 +517,7 @@ _e_comp_wl_client_focus(E_Client *ec)
      }
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_focus_in(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
    E_Client *ec, *focused;
@@ -538,7 +538,7 @@ _e_comp_wl_evas_cb_focus_in(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj
    _e_comp_wl_client_focus(ec);
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_focus_out(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
    E_Client *ec;
@@ -575,7 +575,7 @@ _e_comp_wl_evas_cb_focus_out(void *data, Evas *evas EINA_UNUSED, Evas_Object *ob
    ec->comp_data->focus_update = 0;
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_resize(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
    E_Client *ec;
@@ -589,7 +589,7 @@ _e_comp_wl_evas_cb_resize(void *data, Evas_Object *obj EINA_UNUSED, void *event
    _e_comp_wl_client_idler_add(ec);
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_delete_request(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
    E_Client *ec;
@@ -607,7 +607,7 @@ _e_comp_wl_evas_cb_delete_request(void *data, Evas_Object *obj EINA_UNUSED, void
     * NB: No such animal wrt wayland */
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_kill_request(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
    E_Client *ec;
@@ -629,7 +629,7 @@ _e_comp_wl_evas_cb_kill_request(void *data, Evas_Object *obj EINA_UNUSED, void *
    _e_comp_wl_focus_check(ec->comp);
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_ping(void *data, Evas_Object *obj EINA_UNUSED, void *event EINA_UNUSED)
 {
    E_Client *ec;
@@ -641,7 +641,7 @@ _e_comp_wl_evas_cb_ping(void *data, Evas_Object *obj EINA_UNUSED, void *event EI
    ec->comp_data->shell.ping(ec->comp_data->shell.surface);
 }
 
-static void 
+static void
 _e_comp_wl_evas_cb_color_set(void *data, Evas_Object *obj, void *event EINA_UNUSED)
 {
    E_Client *ec;
@@ -654,58 +654,58 @@ _e_comp_wl_evas_cb_color_set(void *data, Evas_Object *obj, void *event EINA_UNUS
    ec->netwm.opacity_changed = EINA_TRUE;
 }
 
-static void 
+static void
 _e_comp_wl_client_evas_init(E_Client *ec)
 {
    if (ec->comp_data->evas_init) return;
-   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW, 
+   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW,
                                   _e_comp_wl_evas_cb_show, ec);
-   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_HIDE, 
+   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_HIDE,
                                   _e_comp_wl_evas_cb_hide, ec);
 
    /* setup input callbacks */
-   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_IN, 
+   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_IN,
                                   _e_comp_wl_evas_cb_mouse_in, ec);
-   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_OUT, 
+   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_OUT,
                                   _e_comp_wl_evas_cb_mouse_out, ec);
-   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_MOVE, 
+   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_MOVE,
                                   _e_comp_wl_evas_cb_mouse_move, ec);
-   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_DOWN, 
+   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_DOWN,
                                   _e_comp_wl_evas_cb_mouse_down, ec);
-   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_UP, 
+   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_UP,
                                   _e_comp_wl_evas_cb_mouse_up, ec);
-   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_WHEEL, 
+   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_MOUSE_WHEEL,
                                   _e_comp_wl_evas_cb_mouse_wheel, ec);
 
-   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_FOCUS_IN, 
+   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_FOCUS_IN,
                                   _e_comp_wl_evas_cb_focus_in, ec);
-   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_FOCUS_OUT, 
+   evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_FOCUS_OUT,
                                   _e_comp_wl_evas_cb_focus_out, ec);
 
    if (!ec->override)
      {
-        evas_object_smart_callback_add(ec->frame, "client_resize", 
+        evas_object_smart_callback_add(ec->frame, "client_resize",
                                        _e_comp_wl_evas_cb_resize, ec);
      }
 
    /* setup delete/kill callbacks */
-   evas_object_smart_callback_add(ec->frame, "delete_request", 
+   evas_object_smart_callback_add(ec->frame, "delete_request",
                                   _e_comp_wl_evas_cb_delete_request, ec);
-   evas_object_smart_callback_add(ec->frame, "kill_request", 
+   evas_object_smart_callback_add(ec->frame, "kill_request",
                                   _e_comp_wl_evas_cb_kill_request, ec);
 
    /* setup ping callback */
-   evas_object_smart_callback_add(ec->frame, "ping", 
+   evas_object_smart_callback_add(ec->frame, "ping",
                                   _e_comp_wl_evas_cb_ping, ec);
 
-   evas_object_smart_callback_add(ec->frame, "color_set", 
+   evas_object_smart_callback_add(ec->frame, "color_set",
                                   _e_comp_wl_evas_cb_color_set, ec);
 
    ec->comp_data->evas_init = EINA_TRUE;
 }
 
 #ifndef HAVE_WAYLAND_ONLY
-static Eina_Bool 
+static Eina_Bool
 _e_comp_wl_cb_randr_change(void *data EINA_UNUSED, int type EINA_UNUSED, void *event EINA_UNUSED)
 {
    Eina_List *l;
@@ -732,11 +732,11 @@ _e_comp_wl_cb_randr_change(void *data EINA_UNUSED, int type EINA_UNUSED, void *e
              break;
           }
 
-        e_comp_wl_output_init(screen->id, screen->info.screen, 
+        e_comp_wl_output_init(screen->id, screen->info.screen,
                               screen->info.name,
-                              screen->config.geom.x, screen->config.geom.y, 
-                              screen->config.geom.w, screen->config.geom.h, 
-                              screen->info.size.w, screen->info.size.h, 
+                              screen->config.geom.x, screen->config.geom.y,
+                              screen->config.geom.w, screen->config.geom.h,
+                              screen->info.size.w, screen->info.size.h,
                               screen->config.mode.refresh, 0, transform);
      }
 
@@ -744,13 +744,13 @@ _e_comp_wl_cb_randr_change(void *data EINA_UNUSED, int type EINA_UNUSED, void *e
 }
 #endif
 
-static Eina_Bool 
+static Eina_Bool
 _e_comp_wl_cb_comp_object_add(void *data EINA_UNUSED, int type EINA_UNUSED, E_Event_Comp_Object *ev)
 {
    E_Client *ec;
 
    /* try to get the client from the object */
-   if (!(ec = e_comp_object_client_get(ev->comp_object))) 
+   if (!(ec = e_comp_object_client_get(ev->comp_object)))
      return ECORE_CALLBACK_RENEW;
 
    /* check for client being deleted */
@@ -765,7 +765,7 @@ _e_comp_wl_cb_comp_object_add(void *data EINA_UNUSED, int type EINA_UNUSED, E_Ev
    return ECORE_CALLBACK_RENEW;
 }
 
-static void 
+static void
 _e_comp_wl_cb_key_down(void *event)
 {
    E_Comp_Data *cdata;
@@ -815,7 +815,7 @@ _e_comp_wl_cb_key_down(void *event)
              EINA_LIST_FOREACH(cdata->kbd.resources, l, res)
                {
                   if (wl_resource_get_client(res) != wc) continue;
-                  wl_keyboard_send_key(res, serial, ev->timestamp, 
+                  wl_keyboard_send_key(res, serial, ev->timestamp,
                                        keycode, WL_KEYBOARD_KEY_STATE_PRESSED);
                }
           }
@@ -828,7 +828,7 @@ _e_comp_wl_cb_key_down(void *event)
      }
 }
 
-static void 
+static void
 _e_comp_wl_cb_key_up(void *event)
 {
    E_Client *ec;
@@ -862,7 +862,7 @@ _e_comp_wl_cb_key_up(void *event)
              EINA_LIST_FOREACH(cdata->kbd.resources, l, res)
                {
                   if (wl_resource_get_client(res) != wc) continue;
-                  wl_keyboard_send_key(res, serial, ev->timestamp, 
+                  wl_keyboard_send_key(res, serial, ev->timestamp,
                                        keycode, WL_KEYBOARD_KEY_STATE_RELEASED);
                }
           }
@@ -875,7 +875,7 @@ _e_comp_wl_cb_key_up(void *event)
      }
 }
 
-static Eina_Bool 
+static Eina_Bool
 _e_comp_wl_cb_input_event(void *data EINA_UNUSED, int type, void *ev)
 {
    _last_event_time = ecore_loop_time_get();
@@ -888,7 +888,7 @@ _e_comp_wl_cb_input_event(void *data EINA_UNUSED, int type, void *ev)
    return ECORE_CALLBACK_RENEW;
 }
 
-static void 
+static void
 _e_comp_wl_surface_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    E_Pixmap *ep;
@@ -903,7 +903,7 @@ _e_comp_wl_surface_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_re
    wl_resource_destroy(resource);
 }
 
-static void 
+static void
 _e_comp_wl_surface_cb_attach(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *buffer_resource, int32_t sx, int32_t sy)
 {
    E_Pixmap *ep;
@@ -946,7 +946,7 @@ _e_comp_wl_surface_cb_attach(struct wl_client *client EINA_UNUSED, struct wl_res
    if (buffer_resource)
      {
         struct wl_shm_buffer *shmb;
+
         /* check for this resource being a shm buffer */
         if ((shmb = wl_shm_buffer_get(buffer_resource)))
           {
@@ -957,7 +957,7 @@ _e_comp_wl_surface_cb_attach(struct wl_client *client EINA_UNUSED, struct wl_res
      }
 }
 
-static void 
+static void
 _e_comp_wl_surface_cb_damage(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, int32_t x, int32_t y, int32_t w, int32_t h)
 {
    E_Pixmap *ep;
@@ -984,11 +984,11 @@ _e_comp_wl_surface_cb_damage(struct wl_client *client EINA_UNUSED, struct wl_res
    if (!(dmg = eina_rectangle_new(x, y, w, h))) return;
 
    /* add damage rectangle to list of pending damages */
-   ec->comp_data->pending.damages = 
+   ec->comp_data->pending.damages =
      eina_list_append(ec->comp_data->pending.damages, dmg);
 }
 
-static void 
+static void
 _e_comp_wl_frame_cb_destroy(struct wl_resource *resource)
 {
    E_Client *ec;
@@ -1001,7 +1001,7 @@ _e_comp_wl_frame_cb_destroy(struct wl_resource *resource)
    ec->comp_data->frames = eina_list_remove(ec->comp_data->frames, resource);
 }
 
-static void 
+static void
 _e_comp_wl_surface_cb_frame(struct wl_client *client, struct wl_resource *resource, uint32_t callback)
 {
    E_Pixmap *ep;
@@ -1020,7 +1020,7 @@ _e_comp_wl_surface_cb_frame(struct wl_client *client, struct wl_resource *resour
    if (e_object_is_del(E_OBJECT(ec))) return;
 
    /* create frame callback */
-   if (!(res = 
+   if (!(res =
          wl_resource_create(client, &wl_callback_interface, 1, callback)))
      {
         wl_resource_post_no_memory(resource);
@@ -1033,7 +1033,7 @@ _e_comp_wl_surface_cb_frame(struct wl_client *client, struct wl_resource *resour
    ec->comp_data->frames = eina_list_append(ec->comp_data->frames, res);
 }
 
-static void 
+static void
 _e_comp_wl_surface_cb_opaque_region_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *region_resource)
 {
    E_Pixmap *ep;
@@ -1075,7 +1075,7 @@ _e_comp_wl_surface_cb_opaque_region_set(struct wl_client *client EINA_UNUSED, st
      e_pixmap_image_opaque_set(ec->pixmap, 0, 0, 0, 0);
 }
 
-static void 
+static void
 _e_comp_wl_surface_cb_input_region_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *region_resource)
 {
    E_Pixmap *ep;
@@ -1107,12 +1107,12 @@ _e_comp_wl_surface_cb_input_region_set(struct wl_client *client EINA_UNUSED, str
      }
    else
      {
-        eina_tiler_rect_add(ec->comp_data->pending.input, 
+        eina_tiler_rect_add(ec->comp_data->pending.input,
                             &(Eina_Rectangle){0, 0, ec->client.w, ec->client.h});
      }
 }
 
-static void 
+static void
 _e_comp_wl_surface_cb_commit(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    E_Pixmap *ep;
@@ -1135,7 +1135,7 @@ _e_comp_wl_surface_cb_commit(struct wl_client *client EINA_UNUSED, struct wl_res
    /* DBG("Surface Commit: %d", wl_resource_get_id(resource)); */
 
    /* call the subsurface commit function
-    * 
+    *
     * NB: Returns true on success */
    if (e_comp_wl_subsurface_commit(ec)) return;
 
@@ -1150,19 +1150,19 @@ _e_comp_wl_surface_cb_commit(struct wl_client *client EINA_UNUSED, struct wl_res
      }
 }
 
-static void 
+static void
 _e_comp_wl_surface_cb_buffer_transform_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource EINA_UNUSED, int32_t transform EINA_UNUSED)
 {
    DBG("Surface Buffer Transform: %d", wl_resource_get_id(resource));
 }
 
-static void 
+static void
 _e_comp_wl_surface_cb_buffer_scale_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource EINA_UNUSED, int32_t scale EINA_UNUSED)
 {
    DBG("Surface Buffer Scale: %d", wl_resource_get_id(resource));
 }
 
-static const struct wl_surface_interface _e_surface_interface = 
+static const struct wl_surface_interface _e_surface_interface =
 {
    _e_comp_wl_surface_cb_destroy,
    _e_comp_wl_surface_cb_attach,
@@ -1175,7 +1175,7 @@ static const struct wl_surface_interface _e_surface_interface =
    _e_comp_wl_surface_cb_buffer_scale_set
 };
 
-static void 
+static void
 _e_comp_wl_surface_destroy(struct wl_resource *resource)
 {
    E_Pixmap *ep;
@@ -1191,7 +1191,7 @@ _e_comp_wl_surface_destroy(struct wl_resource *resource)
    e_object_del(E_OBJECT(ec));
 }
 
-static void 
+static void
 _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_resource *resource, uint32_t id)
 {
    E_Comp *comp;
@@ -1205,7 +1205,7 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
    DBG("Compositor Cb Surface Create: %d", id);
 
    /* try to create an internal surface */
-   if (!(res = wl_resource_create(client, &wl_surface_interface, 
+   if (!(res = wl_resource_create(client, &wl_surface_interface,
                                   wl_resource_get_version(resource), id)))
      {
         ERR("Could not create compositor surface");
@@ -1216,7 +1216,7 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
    DBG("\tCreated Resource: %d", wl_resource_get_id(res));
 
    /* set implementation on resource */
-   wl_resource_set_implementation(res, &_e_surface_interface, NULL, 
+   wl_resource_set_implementation(res, &_e_surface_interface, NULL,
                                   _e_comp_wl_surface_destroy);
 
    wl_client_get_credentials(client, &pid, NULL, NULL);
@@ -1243,14 +1243,14 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
    wl_signal_emit(&comp->wl_comp_data->signals.surface.create, res);
 }
 
-static void 
+static void
 _e_comp_wl_region_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    DBG("Region Destroy: %d", wl_resource_get_id(resource));
    wl_resource_destroy(resource);
 }
 
-static void 
+static void
 _e_comp_wl_region_cb_add(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, int32_t x, int32_t y, int32_t w, int32_t h)
 {
    Eina_Tiler *tiler;
@@ -1271,7 +1271,7 @@ _e_comp_wl_region_cb_add(struct wl_client *client EINA_UNUSED, struct wl_resourc
      }
 }
 
-static void 
+static void
 _e_comp_wl_region_cb_subtract(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, int32_t x, int32_t y, int32_t w, int32_t h)
 {
    Eina_Tiler *tiler;
@@ -1293,14 +1293,14 @@ _e_comp_wl_region_cb_subtract(struct wl_client *client EINA_UNUSED, struct wl_re
      }
 }
 
-static const struct wl_region_interface _e_region_interface = 
+static const struct wl_region_interface _e_region_interface =
 {
-   _e_comp_wl_region_cb_destroy, 
-   _e_comp_wl_region_cb_add, 
+   _e_comp_wl_region_cb_destroy,
+   _e_comp_wl_region_cb_add,
    _e_comp_wl_region_cb_subtract
 };
 
-static void 
+static void
 _e_comp_wl_compositor_cb_region_destroy(struct wl_resource *resource)
 {
    Eina_Tiler *tiler;
@@ -1312,7 +1312,7 @@ _e_comp_wl_compositor_cb_region_destroy(struct wl_resource *resource)
      eina_tiler_free(tiler);
 }
 
-static void 
+static void
 _e_comp_wl_compositor_cb_region_create(struct wl_client *client, struct wl_resource *resource, uint32_t id)
 {
    E_Comp *comp;
@@ -1342,17 +1342,17 @@ _e_comp_wl_compositor_cb_region_create(struct wl_client *client, struct wl_resou
         return;
      }
 
-   wl_resource_set_implementation(res, &_e_region_interface, tiler, 
+   wl_resource_set_implementation(res, &_e_region_interface, tiler,
                                   _e_comp_wl_compositor_cb_region_destroy);
 }
 
-static const struct wl_compositor_interface _e_comp_interface = 
+static const struct wl_compositor_interface _e_comp_interface =
 {
    _e_comp_wl_compositor_cb_surface_create,
    _e_comp_wl_compositor_cb_region_create
 };
 
-static void 
+static void
 _e_comp_wl_compositor_cb_bind(struct wl_client *client, void *data, uint32_t version, uint32_t id)
 {
    E_Comp *comp;
@@ -1360,8 +1360,8 @@ _e_comp_wl_compositor_cb_bind(struct wl_client *client, void *data, uint32_t ver
 
    if (!(comp = data)) return;
 
-   if (!(res = 
-         wl_resource_create(client, &wl_compositor_interface, 
+   if (!(res =
+         wl_resource_create(client, &wl_compositor_interface,
                             MIN(version, COMPOSITOR_VERSION), id)))
      {
         ERR("Could not create compositor resource: %m");
@@ -1372,7 +1372,7 @@ _e_comp_wl_compositor_cb_bind(struct wl_client *client, void *data, uint32_t ver
    wl_resource_set_implementation(res, &_e_comp_interface, comp, NULL);
 }
 
-static void 
+static void
 _e_comp_wl_compositor_cb_del(E_Comp *comp)
 {
    E_Comp_Data *cdata;
@@ -1396,7 +1396,7 @@ _e_comp_wl_compositor_cb_del(E_Comp *comp)
    free(cdata);
 }
 
-static void 
+static void
 _e_comp_wl_subsurface_destroy(struct wl_resource *resource)
 {
    E_Client *ec;
@@ -1413,14 +1413,14 @@ _e_comp_wl_subsurface_destroy(struct wl_resource *resource)
    if (sdata->parent)
      {
         /* remove this client from parents sub list */
-        sdata->parent->comp_data->sub.list = 
+        sdata->parent->comp_data->sub.list =
           eina_list_remove(sdata->parent->comp_data->sub.list, ec);
      }
 
    /* release buffer */
    if (sdata->cached.buffer) wl_buffer_send_release(sdata->cached.buffer);
 
-   /* the client is getting deleted, which means the pixmap will be getting 
+   /* the client is getting deleted, which means the pixmap will be getting
     * freed. We need to unset the surface user data */
    /* wl_resource_set_user_data(ec->comp_data->surface, NULL); */
 
@@ -1435,7 +1435,7 @@ _e_comp_wl_subsurface_destroy(struct wl_resource *resource)
    ec->comp_data->sub.data = NULL;
 }
 
-static Eina_Bool 
+static Eina_Bool
 _e_comp_wl_subsurface_synchronized_get(E_Comp_Wl_Subsurf_Data *sdata)
 {
    while (sdata)
@@ -1448,7 +1448,7 @@ _e_comp_wl_subsurface_synchronized_get(E_Comp_Wl_Subsurf_Data *sdata)
    return EINA_FALSE;
 }
 
-static void 
+static void
 _e_comp_wl_subsurface_commit_to_cache(E_Client *ec)
 {
    E_Comp_Client_Data *cdata;
@@ -1477,7 +1477,7 @@ _e_comp_wl_subsurface_commit_to_cache(E_Client *ec)
    sdata->cached.has_data = EINA_TRUE;
 }
 
-static void 
+static void
 _e_comp_wl_subsurface_commit_from_cache(E_Client *ec)
 {
    E_Comp_Client_Data *cdata;
@@ -1553,7 +1553,7 @@ _e_comp_wl_subsurface_commit_from_cache(E_Client *ec)
           ec->placed = placed;
      }
 
-   if (!cdata->mapped) 
+   if (!cdata->mapped)
      {
         DBG("\tSurface Not Mapped. Skip to Unmapped");
         goto unmap;
@@ -1574,7 +1574,7 @@ _e_comp_wl_subsurface_commit_from_cache(E_Client *ec)
      {
         tmp = eina_tiler_new(ec->w, ec->h);
         eina_tiler_tile_size_set(tmp, 1, 1);
-        eina_tiler_rect_add(tmp, 
+        eina_tiler_rect_add(tmp,
                             &(Eina_Rectangle){0, 0, ec->client.w, ec->client.h});
 
         if ((src = eina_tiler_intersection(sdata->cached.input, tmp)))
@@ -1589,14 +1589,14 @@ _e_comp_wl_subsurface_commit_from_cache(E_Client *ec)
              EINA_ITERATOR_FOREACH(itr, rect)
                ec->shape_input_rects_num += 1;
 
-             ec->shape_input_rects = 
+             ec->shape_input_rects =
                malloc(sizeof(Eina_Rectangle) * ec->shape_input_rects_num);
 
              if (ec->shape_input_rects)
                {
                   EINA_ITERATOR_FOREACH(itr, rect)
                     {
-                       ec->shape_input_rects[i] = 
+                       ec->shape_input_rects[i] =
                          *(Eina_Rectangle *)((char *)rect);
 
                        ec->shape_input_rects[i].x = rect->x;
@@ -1629,7 +1629,7 @@ unmap:
      eina_tiler_clear(sdata->cached.input);
 }
 
-static void 
+static void
 _e_comp_wl_subsurface_parent_commit(E_Client *ec, Eina_Bool parent_synchronized)
 {
    E_Client *parent;
@@ -1640,7 +1640,7 @@ _e_comp_wl_subsurface_parent_commit(E_Client *ec, Eina_Bool parent_synchronized)
 
    if (sdata->position.set)
      {
-        evas_object_move(ec->frame, parent->x + sdata->position.x, 
+        evas_object_move(ec->frame, parent->x + sdata->position.x,
                          parent->y + sdata->position.y);
         sdata->position.set = EINA_FALSE;
      }
@@ -1661,13 +1661,13 @@ _e_comp_wl_subsurface_parent_commit(E_Client *ec, Eina_Bool parent_synchronized)
      }
 }
 
-static void 
+static void
 _e_comp_wl_subsurface_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    wl_resource_destroy(resource);
 }
 
-static void 
+static void
 _e_comp_wl_subsurface_cb_position_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, int32_t x, int32_t y)
 {
    E_Client *ec;
@@ -1685,7 +1685,7 @@ _e_comp_wl_subsurface_cb_position_set(struct wl_client *client EINA_UNUSED, stru
    sdata->position.set = EINA_TRUE;
 }
 
-static void 
+static void
 _e_comp_wl_subsurface_cb_place_above(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *sibling_resource)
 {
    E_Client *ec, *ecs;
@@ -1705,16 +1705,16 @@ _e_comp_wl_subsurface_cb_place_above(struct wl_client *client EINA_UNUSED, struc
 
    if (!(parent = ec->comp_data->sub.data->parent)) return;
 
-   parent->comp_data->sub.list = 
+   parent->comp_data->sub.list =
      eina_list_remove(parent->comp_data->sub.list, ec);
 
-   parent->comp_data->sub.list = 
+   parent->comp_data->sub.list =
      eina_list_append_relative(parent->comp_data->sub.list, ec, ecs);
 
    parent->comp_data->sub.restack_target = parent;
 }
 
-static void 
+static void
 _e_comp_wl_subsurface_cb_place_below(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *sibling_resource)
 {
    E_Client *ec, *ecs;
@@ -1734,16 +1734,16 @@ _e_comp_wl_subsurface_cb_place_below(struct wl_client *client EINA_UNUSED, struc
 
    if (!(parent = ec->comp_data->sub.data->parent)) return;
 
-   parent->comp_data->sub.list = 
+   parent->comp_data->sub.list =
      eina_list_remove(parent->comp_data->sub.list, ec);
 
-   parent->comp_data->sub.list = 
+   parent->comp_data->sub.list =
      eina_list_prepend_relative(parent->comp_data->sub.list, ec, ecs);
 
    parent->comp_data->sub.restack_target = parent;
 }
 
-static void 
+static void
 _e_comp_wl_subsurface_cb_sync_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    E_Client *ec;
@@ -1759,7 +1759,7 @@ _e_comp_wl_subsurface_cb_sync_set(struct wl_client *client EINA_UNUSED, struct w
    sdata->synchronized = EINA_TRUE;
 }
 
-static void 
+static void
 _e_comp_wl_subsurface_cb_desync_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    E_Client *ec;
@@ -1775,17 +1775,17 @@ _e_comp_wl_subsurface_cb_desync_set(struct wl_client *client EINA_UNUSED, struct
    sdata->synchronized = EINA_FALSE;
 }
 
-static const struct wl_subsurface_interface _e_subsurface_interface = 
+static const struct wl_subsurface_interface _e_subsurface_interface =
 {
    _e_comp_wl_subsurface_cb_destroy,
    _e_comp_wl_subsurface_cb_position_set,
    _e_comp_wl_subsurface_cb_place_above,
    _e_comp_wl_subsurface_cb_place_below,
-   _e_comp_wl_subsurface_cb_sync_set, 
+   _e_comp_wl_subsurface_cb_sync_set,
    _e_comp_wl_subsurface_cb_desync_set
 };
 
-static Eina_Bool 
+static Eina_Bool
 _e_comp_wl_subsurface_create(E_Client *ec, E_Client *epc, uint32_t id, struct wl_resource *surface_resource)
 {
    struct wl_client *client;
@@ -1795,7 +1795,7 @@ _e_comp_wl_subsurface_create(E_Client *ec, E_Client *epc, uint32_t id, struct wl
    /* try to get the wayland client from the surface resource */
    if (!(client = wl_resource_get_client(surface_resource)))
      {
-        ERR("Could not get client from resource %d", 
+        ERR("Could not get client from resource %d",
             wl_resource_get_id(surface_resource));
         return EINA_FALSE;
      }
@@ -1816,7 +1816,7 @@ _e_comp_wl_subsurface_create(E_Client *ec, E_Client *epc, uint32_t id, struct wl
      }
 
    /* set resource implementation */
-   wl_resource_set_implementation(res, &_e_subsurface_interface, ec, 
+   wl_resource_set_implementation(res, &_e_subsurface_interface, ec,
                                   _e_comp_wl_subsurface_destroy);
 
    /* set subsurface data properties */
@@ -1841,7 +1841,7 @@ _e_comp_wl_subsurface_create(E_Client *ec, E_Client *epc, uint32_t id, struct wl
         if (epc->comp_data)
           {
              /* append this client to the parents subsurface list */
-             epc->comp_data->sub.list = 
+             epc->comp_data->sub.list =
                eina_list_append(epc->comp_data->sub.list, ec);
           }
 
@@ -1859,7 +1859,7 @@ dat_err:
    return EINA_FALSE;
 }
 
-static void 
+static void
 _e_comp_wl_subcompositor_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    wl_resource_destroy(resource);
@@ -1867,21 +1867,21 @@ _e_comp_wl_subcompositor_cb_destroy(struct wl_client *client EINA_UNUSED, struct
    /* TODO: destroy iconify/uniconify handlers */
 }
 
-static void 
+static void
 _e_comp_wl_subcompositor_cb_subsurface_get(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, uint32_t id, struct wl_resource *surface_resource, struct wl_resource *parent_resource)
 {
    E_Pixmap *ep, *epp;
    E_Client *ec, *epc = NULL;
    static const char where[] = "get_subsurface: wl_subsurface@";
 
-   DBG("Subcompositor Create Subsurface for Surface: %d", 
+   DBG("Subcompositor Create Subsurface for Surface: %d",
        wl_resource_get_id(surface_resource));
 
    /* try to get the surface pixmap */
    if (!(ep = wl_resource_get_user_data(surface_resource)))
      {
-        wl_resource_post_error(resource, WL_SUBCOMPOSITOR_ERROR_BAD_SURFACE, 
-                               "%s%d: wl_surface@%d is invalid.", where, id, 
+        wl_resource_post_error(resource, WL_SUBCOMPOSITOR_ERROR_BAD_SURFACE,
+                               "%s%d: wl_surface@%d is invalid.", where, id,
                                wl_resource_get_id(surface_resource));
         return;
      }
@@ -1889,8 +1889,8 @@ _e_comp_wl_subcompositor_cb_subsurface_get(struct wl_client *client EINA_UNUSED,
    /* try to get the parent pixmap */
    if (!(epp = wl_resource_get_user_data(parent_resource)))
      {
-        wl_resource_post_error(resource, WL_SUBCOMPOSITOR_ERROR_BAD_SURFACE, 
-                               "%s%d: wl_surface@%d is invalid.", where, id, 
+        wl_resource_post_error(resource, WL_SUBCOMPOSITOR_ERROR_BAD_SURFACE,
+                               "%s%d: wl_surface@%d is invalid.", where, id,
                                wl_resource_get_id(parent_resource));
         return;
      }
@@ -1945,17 +1945,17 @@ _e_comp_wl_subcompositor_cb_subsurface_get(struct wl_client *client EINA_UNUSED,
 
    /* try to create a new subsurface */
    if (!_e_comp_wl_subsurface_create(ec, epc, id, surface_resource))
-     ERR("Failed to create subsurface for surface %d", 
+     ERR("Failed to create subsurface for surface %d",
          wl_resource_get_id(surface_resource));
 }
 
-static const struct wl_subcompositor_interface _e_subcomp_interface = 
+static const struct wl_subcompositor_interface _e_subcomp_interface =
 {
    _e_comp_wl_subcompositor_cb_destroy,
    _e_comp_wl_subcompositor_cb_subsurface_get
 };
 
-static void 
+static void
 _e_comp_wl_subcompositor_cb_bind(struct wl_client *client, void *data, uint32_t version, uint32_t id)
 {
    E_Comp *comp;
@@ -1963,8 +1963,8 @@ _e_comp_wl_subcompositor_cb_bind(struct wl_client *client, void *data, uint32_t
 
    if (!(comp = data)) return;
 
-   if (!(res = 
-         wl_resource_create(client, &wl_subcompositor_interface, 
+   if (!(res =
+         wl_resource_create(client, &wl_subcompositor_interface,
                             MIN(version, 1), id)))
      {
         ERR("Could not create subcompositor resource: %m");
@@ -1977,7 +1977,7 @@ _e_comp_wl_subcompositor_cb_bind(struct wl_client *client, void *data, uint32_t
    /* TODO: add handlers for client iconify/uniconify */
 }
 
-static void 
+static void
 _e_comp_wl_client_cb_new(void *data EINA_UNUSED, E_Client *ec)
 {
    uint64_t win;
@@ -2012,10 +2012,10 @@ _e_comp_wl_client_cb_new(void *data EINA_UNUSED, E_Client *ec)
    ec->ignored = e_comp_ignore_win_find(win);
    ec->border_size = 0;
 
-   /* NB: could not find a better place to do this, BUT for internal windows, 
-    * we need to set delete_request else the close buttons on the frames do 
+   /* NB: could not find a better place to do this, BUT for internal windows,
+    * we need to set delete_request else the close buttons on the frames do
     * basically nothing */
-   if ((ec->internal) || (ec->internal_elm_win)) 
+   if ((ec->internal) || (ec->internal_elm_win))
      ec->icccm.delete_request = EINA_TRUE;
 
    /* set initial client data properties */
@@ -2029,7 +2029,7 @@ _e_comp_wl_client_cb_new(void *data EINA_UNUSED, E_Client *ec)
    e_hints_client_list_set();
 }
 
-static void 
+static void
 _e_comp_wl_client_cb_del(void *data EINA_UNUSED, E_Client *ec)
 {
    /* uint64_t win; */
@@ -2064,7 +2064,7 @@ _e_comp_wl_client_cb_del(void *data EINA_UNUSED, E_Client *ec)
         ec->parent->modal = NULL;
      }
 
-   /* the client is getting deleted, which means the pixmap will be getting 
+   /* the client is getting deleted, which means the pixmap will be getting
     * freed. We need to unset the surface user data */
    if (ec->comp_data->surface)
      wl_resource_set_user_data(ec->comp_data->surface, NULL);
@@ -2080,7 +2080,7 @@ _e_comp_wl_client_cb_del(void *data EINA_UNUSED, E_Client *ec)
    _e_comp_wl_focus_check(ec->comp);
 }
 
-static void 
+static void
 _e_comp_wl_client_cb_post_new(void *data EINA_UNUSED, E_Client *ec)
 {
    E_COMP_WL_PIXMAP_CHECK;
@@ -2097,7 +2097,7 @@ _e_comp_wl_client_cb_post_new(void *data EINA_UNUSED, E_Client *ec)
      }
 }
 
-static void 
+static void
 _e_comp_wl_client_cb_pre_frame(void *data EINA_UNUSED, E_Client *ec)
 {
    uint64_t parent;
@@ -2128,7 +2128,7 @@ _e_comp_wl_client_cb_pre_frame(void *data EINA_UNUSED, E_Client *ec)
              switch (ec->netwm.type)
                {
                 case E_WINDOW_TYPE_DIALOG:
-                  /* NB: If there is No transient set, then dialogs get 
+                  /* NB: If there is No transient set, then dialogs get
                    * treated as Normal Toplevel windows */
                   if (ec->icccm.transient_for)
                     type = ECORE_WL_WINDOW_TYPE_TRANSIENT;
@@ -2177,7 +2177,7 @@ _e_comp_wl_client_cb_pre_frame(void *data EINA_UNUSED, E_Client *ec)
    ec->comp_data->reparented = EINA_TRUE;
 }
 
-static void 
+static void
 _e_comp_wl_client_cb_focus_set(void *data EINA_UNUSED, E_Client *ec)
 {
    E_COMP_WL_PIXMAP_CHECK;
@@ -2186,15 +2186,15 @@ _e_comp_wl_client_cb_focus_set(void *data EINA_UNUSED, E_Client *ec)
    if (ec->comp_data->shell.configure_send)
      {
         if (ec->comp_data->shell.surface)
-          ec->comp_data->shell.configure_send(ec->comp_data->shell.surface, 
+          ec->comp_data->shell.configure_send(ec->comp_data->shell.surface,
                                               0, 0, 0);
      }
 
    if ((ec->icccm.take_focus) && (ec->icccm.accepts_focus))
-     e_grabinput_focus(e_client_util_win_get(ec), 
+     e_grabinput_focus(e_client_util_win_get(ec),
                        E_FOCUS_METHOD_LOCALLY_ACTIVE);
    else if (!ec->icccm.accepts_focus)
-     e_grabinput_focus(e_client_util_win_get(ec), 
+     e_grabinput_focus(e_client_util_win_get(ec),
                        E_FOCUS_METHOD_GLOBALLY_ACTIVE);
    else if (!ec->icccm.take_focus)
      e_grabinput_focus(e_client_util_win_get(ec), E_FOCUS_METHOD_PASSIVE);
@@ -2206,7 +2206,7 @@ _e_comp_wl_client_cb_focus_set(void *data EINA_UNUSED, E_Client *ec)
      }
 }
 
-static void 
+static void
 _e_comp_wl_client_cb_focus_unset(void *data EINA_UNUSED, E_Client *ec)
 {
    E_COMP_WL_PIXMAP_CHECK;
@@ -2215,7 +2215,7 @@ _e_comp_wl_client_cb_focus_unset(void *data EINA_UNUSED, E_Client *ec)
    if (ec->comp_data->shell.configure_send)
      {
         if (ec->comp_data->shell.surface)
-          ec->comp_data->shell.configure_send(ec->comp_data->shell.surface, 
+          ec->comp_data->shell.configure_send(ec->comp_data->shell.surface,
                                               0, 0, 0);
      }
 
@@ -2225,7 +2225,7 @@ _e_comp_wl_client_cb_focus_unset(void *data EINA_UNUSED, E_Client *ec)
      ec->comp->wl_comp_data->kbd.focus = NULL;
 }
 
-static void 
+static void
 _e_comp_wl_client_cb_resize_begin(void *data EINA_UNUSED, E_Client *ec)
 {
    E_COMP_WL_PIXMAP_CHECK;
@@ -2262,7 +2262,7 @@ _e_comp_wl_client_cb_resize_begin(void *data EINA_UNUSED, E_Client *ec)
      }
 }
 
-static void 
+static void
 _e_comp_wl_client_cb_resize_end(void *data EINA_UNUSED, E_Client *ec)
 {
    if (e_object_is_del(E_OBJECT(ec))) return;
@@ -2301,7 +2301,7 @@ _e_comp_wl_cb_output_bind(struct wl_client *client, void *data, uint32_t version
 
    if (!(output = data)) return;
 
-   resource = 
+   resource =
      wl_resource_create(client, &wl_output_interface, MIN(version, 2), id);
    if (!resource)
      {
@@ -2311,13 +2311,13 @@ _e_comp_wl_cb_output_bind(struct wl_client *client, void *data, uint32_t version
 
    output->resources = eina_list_append(output->resources, resource);
 
-   wl_resource_set_implementation(resource, NULL, output, 
+   wl_resource_set_implementation(resource, NULL, output,
                                   _e_comp_wl_cb_output_unbind);
    wl_resource_set_user_data(resource, output);
 
-   wl_output_send_geometry(resource, output->x, output->y, 
-                           output->phys_width, output->phys_height, 
-                           output->subpixel, output->make, output->model, 
+   wl_output_send_geometry(resource, output->x, output->y,
+                           output->phys_width, output->phys_height,
+                           output->subpixel, output->make, output->model,
                            output->transform);
 
    if (version >= WL_OUTPUT_SCALE_SINCE_VERSION)
@@ -2330,7 +2330,7 @@ _e_comp_wl_cb_output_bind(struct wl_client *client, void *data, uint32_t version
      wl_output_send_done(resource);
 }
 
-static Eina_Bool 
+static Eina_Bool
 _e_comp_wl_compositor_create(void)
 {
    E_Comp *comp;
@@ -2378,8 +2378,8 @@ _e_comp_wl_compositor_create(void)
    wl_signal_init(&cdata->signals.surface.kill);
 
    /* try to add compositor to wayland globals */
-   if (!wl_global_create(cdata->wl.disp, &wl_compositor_interface, 
-                         COMPOSITOR_VERSION, comp, 
+   if (!wl_global_create(cdata->wl.disp, &wl_compositor_interface,
+                         COMPOSITOR_VERSION, comp,
                          _e_comp_wl_compositor_cb_bind))
      {
         ERR("Could not add compositor to wayland globals: %m");
@@ -2387,7 +2387,7 @@ _e_comp_wl_compositor_create(void)
      }
 
    /* try to add subcompositor to wayland globals */
-   if (!wl_global_create(cdata->wl.disp, &wl_subcompositor_interface, 1, 
+   if (!wl_global_create(cdata->wl.disp, &wl_subcompositor_interface, 1,
                          comp, _e_comp_wl_subcompositor_cb_bind))
      {
         ERR("Could not add subcompositor to wayland globals: %m");
@@ -2430,7 +2430,7 @@ _e_comp_wl_compositor_create(void)
 
         root = ecore_x_window_root_first_get();
         xkb = ecore_x_atom_get("_XKB_RULES_NAMES");
-        ecore_x_window_prop_property_get(root, xkb, ECORE_X_ATOM_STRING, 
+        ecore_x_window_prop_property_get(root, xkb, ECORE_X_ATOM_STRING,
                                          1024, &dat, &len);
         if ((dat) && (len > 0))
           {
@@ -2461,10 +2461,10 @@ _e_comp_wl_compositor_create(void)
    fd = wl_event_loop_get_fd(cdata->wl.loop);
 
    /* create a listener for wayland main loop events */
-   cdata->fd_hdlr = 
-     ecore_main_fd_handler_add(fd, (ECORE_FD_READ | ECORE_FD_ERROR), 
+   cdata->fd_hdlr =
+     ecore_main_fd_handler_add(fd, (ECORE_FD_READ | ECORE_FD_ERROR),
                                _e_comp_wl_cb_read, cdata, NULL, NULL);
-   ecore_main_fd_handler_prepare_callback_set(cdata->fd_hdlr, 
+   ecore_main_fd_handler_prepare_callback_set(cdata->fd_hdlr,
                                               _e_comp_wl_cb_prepare, cdata);
 
    /* setup module idler to load shell mmodule */
@@ -2491,11 +2491,11 @@ disp_err:
 }
 
 /* public functions */
-EAPI Eina_Bool 
+EAPI Eina_Bool
 e_comp_wl_init(void)
 {
    /* set gl available if we have ecore_evas support */
-   if (ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_WAYLAND_EGL) || 
+   if (ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_WAYLAND_EGL) ||
        ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_OPENGL_DRM))
      e_comp_gl_set(EINA_TRUE);
 
@@ -2518,43 +2518,43 @@ e_comp_wl_init(void)
 
    /* add event handlers to catch E events */
 #ifndef HAVE_WAYLAND_ONLY
-   E_LIST_HANDLER_APPEND(handlers, E_EVENT_RANDR_CHANGE, 
+   E_LIST_HANDLER_APPEND(handlers, E_EVENT_RANDR_CHANGE,
                          _e_comp_wl_cb_randr_change, NULL);
 #endif
 
-   E_LIST_HANDLER_APPEND(handlers, E_EVENT_COMP_OBJECT_ADD, 
+   E_LIST_HANDLER_APPEND(handlers, E_EVENT_COMP_OBJECT_ADD,
                          _e_comp_wl_cb_comp_object_add, NULL);
 
-   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_KEY_DOWN, 
+   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_KEY_DOWN,
                          _e_comp_wl_cb_input_event, NULL);
-   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_KEY_UP, 
+   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_KEY_UP,
                          _e_comp_wl_cb_input_event, NULL);
-   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_MOUSE_BUTTON_DOWN, 
+   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_MOUSE_BUTTON_DOWN,
                          _e_comp_wl_cb_input_event, NULL);
-   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_MOUSE_BUTTON_UP, 
+   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_MOUSE_BUTTON_UP,
                          _e_comp_wl_cb_input_event, NULL);
-   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_MOUSE_MOVE, 
+   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_MOUSE_MOVE,
                          _e_comp_wl_cb_input_event, NULL);
-   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_MOUSE_WHEEL, 
+   E_LIST_HANDLER_APPEND(handlers, ECORE_EVENT_MOUSE_WHEEL,
                          _e_comp_wl_cb_input_event, NULL);
 
    /* add hooks to catch e_client events */
    e_client_hook_add(E_CLIENT_HOOK_NEW_CLIENT, _e_comp_wl_client_cb_new, NULL);
    e_client_hook_add(E_CLIENT_HOOK_DEL, _e_comp_wl_client_cb_del, NULL);
 
-   e_client_hook_add(E_CLIENT_HOOK_EVAL_POST_NEW_CLIENT, 
+   e_client_hook_add(E_CLIENT_HOOK_EVAL_POST_NEW_CLIENT,
                      _e_comp_wl_client_cb_post_new, NULL);
    /* e_client_hook_add(E_CLIENT_HOOK_EVAL_PRE_FRAME_ASSIGN,  */
    /*                   _e_comp_wl_client_cb_pre_frame, NULL); */
 
-   e_client_hook_add(E_CLIENT_HOOK_FOCUS_SET, 
+   e_client_hook_add(E_CLIENT_HOOK_FOCUS_SET,
                      _e_comp_wl_client_cb_focus_set, NULL);
-   e_client_hook_add(E_CLIENT_HOOK_FOCUS_UNSET, 
+   e_client_hook_add(E_CLIENT_HOOK_FOCUS_UNSET,
                      _e_comp_wl_client_cb_focus_unset, NULL);
 
-   e_client_hook_add(E_CLIENT_HOOK_RESIZE_BEGIN, 
+   e_client_hook_add(E_CLIENT_HOOK_RESIZE_BEGIN,
                      _e_comp_wl_client_cb_resize_begin, NULL);
-   e_client_hook_add(E_CLIENT_HOOK_RESIZE_END, 
+   e_client_hook_add(E_CLIENT_HOOK_RESIZE_END,
                      _e_comp_wl_client_cb_resize_end, NULL);
 
    _last_event_time = ecore_loop_time_get();
@@ -2562,14 +2562,14 @@ e_comp_wl_init(void)
    return EINA_TRUE;
 }
 
-EAPI struct wl_signal 
+EAPI struct wl_signal
 e_comp_wl_surface_create_signal_get(E_Comp *comp)
 {
    return comp->wl_comp_data->signals.surface.create;
 }
 
 /* internal functions */
-EINTERN void 
+EINTERN void
 e_comp_wl_shutdown(void)
 {
 #ifndef HAVE_WAYLAND_ONLY
@@ -2597,7 +2597,7 @@ e_comp_wl_surface_create(struct wl_client *client, int version, uint32_t id)
    return ret;
 }
 
-EINTERN Eina_Bool 
+EINTERN Eina_Bool
 e_comp_wl_surface_commit(E_Client *ec)
 {
    E_Pixmap *ep;
@@ -2687,7 +2687,7 @@ e_comp_wl_surface_commit(E_Client *ec)
           }
      }
 
-   if (!ec->comp_data->mapped) 
+   if (!ec->comp_data->mapped)
      {
         DBG("\tSurface Not Mapped. Skip to Unmapped");
         goto unmap;
@@ -2708,7 +2708,7 @@ e_comp_wl_surface_commit(E_Client *ec)
      {
         tmp = eina_tiler_new(ec->w, ec->h);
         eina_tiler_tile_size_set(tmp, 1, 1);
-        eina_tiler_rect_add(tmp, 
+        eina_tiler_rect_add(tmp,
                             &(Eina_Rectangle){0, 0, ec->client.w, ec->client.h});
 
         if ((src = eina_tiler_intersection(ec->comp_data->pending.input, tmp)))
@@ -2745,7 +2745,7 @@ unmap:
    return EINA_TRUE;
 }
 
-EINTERN Eina_Bool 
+EINTERN Eina_Bool
 e_comp_wl_subsurface_commit(E_Client *ec)
 {
    E_Comp_Wl_Subsurf_Data *sdata;
@@ -2778,13 +2778,13 @@ e_comp_wl_subsurface_commit(E_Client *ec)
    return EINA_TRUE;
 }
 
-EAPI double 
+EAPI double
 e_comp_wl_idle_time_get(void)
 {
    return (ecore_loop_time_get() - _last_event_time);
 }
 
-EAPI void 
+EAPI void
 e_comp_wl_output_init(const char *id, const char *make, const char *model, int x, int y, int w, int h, int pw, int ph, unsigned int refresh, unsigned int subpixel, unsigned int transform)
 {
    E_Comp_Data *cdata;
@@ -2852,7 +2852,7 @@ e_comp_wl_output_init(const char *id, const char *make, const char *model, int x
 
    cdata->outputs = eina_list_append(cdata->outputs, output);
 
-   output->global = 
-     wl_global_create(cdata->wl.disp, &wl_output_interface, 2, 
+   output->global =
+     wl_global_create(cdata->wl.disp, &wl_output_interface, 2,
                       output, _e_comp_wl_cb_output_bind);
 }
index a4a6342..6c3bc77 100644 (file)
@@ -43,7 +43,7 @@ typedef struct _E_Comp_Wl_Client_Data E_Comp_Wl_Client_Data;
 typedef struct _E_Comp_Wl_Data E_Comp_Wl_Data;
 typedef struct _E_Comp_Wl_Output E_Comp_Wl_Output;
 
-struct _E_Comp_Wl_Buffer 
+struct _E_Comp_Wl_Buffer
 {
    struct wl_resource *resource;
    struct wl_signal destroy_signal;
@@ -95,15 +95,15 @@ struct _E_Comp_Wl_Subsurf_Data
 
 struct _E_Comp_Wl_Data
 {
-   struct 
+   struct
      {
         struct wl_display *disp;
         struct wl_event_loop *loop;
      } wl;
 
-   struct 
+   struct
      {
-        struct 
+        struct
           {
              struct wl_signal create;
              struct wl_signal activate;
@@ -125,13 +125,13 @@ struct _E_Comp_Wl_Data
         /*        } seat, output; */
      } signals;
 
-   struct 
+   struct
      {
         struct wl_resource *shell;
         struct wl_resource *xdg_shell;
      } shell_interface;
 
-   struct 
+   struct
      {
         Eina_List *resources;
         Eina_Bool enabled : 1;
@@ -145,7 +145,7 @@ struct _E_Comp_Wl_Data
         int mod_changed;
      } kbd;
 
-   struct 
+   struct
      {
         Eina_List *resources;
         Eina_Bool enabled : 1;
@@ -154,13 +154,13 @@ struct _E_Comp_Wl_Data
         uint32_t button;
      } ptr;
 
-   struct 
+   struct
      {
         Eina_List *resources;
         Eina_Bool enabled : 1;
      } touch;
 
-   struct 
+   struct
      {
         struct wl_global *global;
         Eina_List *resources;
@@ -168,7 +168,7 @@ struct _E_Comp_Wl_Data
         char *name;
      } seat;
 
-   struct 
+   struct
      {
         struct wl_global *global;
         Eina_List *data_resources;
@@ -194,7 +194,7 @@ struct _E_Comp_Wl_Data
         uint32_t edges;
      } resize;
 
-   struct 
+   struct
      {
         struct xkb_keymap *keymap;
         struct xkb_context *context;
@@ -228,7 +228,7 @@ struct _E_Comp_Wl_Client_Data
    /* regular surface resource (wl_compositor_create_surface) */
    struct wl_resource *surface;
 
-   struct 
+   struct
      {
         /* shell surface resource */
         struct wl_resource *surface;
@@ -242,7 +242,7 @@ struct _E_Comp_Wl_Client_Data
 
    E_Comp_Wl_Buffer_Ref buffer_ref;
 
-   struct 
+   struct
      {
         int32_t x, y, w, h;
         struct wl_resource *buffer;
@@ -251,7 +251,7 @@ struct _E_Comp_Wl_Client_Data
         Eina_Tiler *input;
      } pending;
 
-   struct 
+   struct
      {
         int32_t x, y;
      } popup;
index f618a70..d09dd24 100644 (file)
@@ -13,7 +13,7 @@ extern const struct wl_interface xdg_surface_interface;
 
 #pragma GCC diagnostic pop
 
-static const struct wl_interface *types[] = 
+static const struct wl_interface *types[] =
 {
    NULL,
    NULL,
@@ -36,13 +36,13 @@ static const struct wl_interface *types[] =
    NULL,
    &wl_seat_interface,
    NULL,
-   &wl_seat_interface, 
+   &wl_seat_interface,
    NULL,
    NULL,
    &wl_output_interface,
 };
 
-static const struct wl_message xdg_shell_requests[] = 
+static const struct wl_message xdg_shell_requests[] =
 {
    { "use_unstable_version", "i", types + 0 },
    { "get_xdg_surface", "no", types + 4 },
@@ -50,19 +50,19 @@ static const struct wl_message xdg_shell_requests[] =
    { "pong", "u", types + 0 },
 };
 
-static const struct wl_message xdg_shell_events[] = 
+static const struct wl_message xdg_shell_events[] =
 {
    { "ping", "u", types + 0 },
 };
 
-WL_EXPORT const struct wl_interface xdg_shell_interface = 
+WL_EXPORT const struct wl_interface xdg_shell_interface =
 {
-   "xdg_shell", 1, 
-   4, xdg_shell_requests, 
+   "xdg_shell", 1,
+   4, xdg_shell_requests,
    1, xdg_shell_events,
 };
 
-static const struct wl_message xdg_surface_requests[] = 
+static const struct wl_message xdg_surface_requests[] =
 {
    { "destroy", "", types + 0 },
    { "set_parent", "?o", types + 14 },
@@ -80,32 +80,32 @@ static const struct wl_message xdg_surface_requests[] =
    { "set_minimized", "", types + 0 },
 };
 
-static const struct wl_message xdg_surface_events[] = 
+static const struct wl_message xdg_surface_events[] =
 {
    { "configure", "iiau", types + 0 },
    { "close", "", types + 0 },
 };
 
-WL_EXPORT const struct wl_interface xdg_surface_interface = 
+WL_EXPORT const struct wl_interface xdg_surface_interface =
 {
-   "xdg_surface", 1, 
-   14, xdg_surface_requests, 
+   "xdg_surface", 1,
+   14, xdg_surface_requests,
    2, xdg_surface_events,
 };
 
-static const struct wl_message xdg_popup_requests[] = 
+static const struct wl_message xdg_popup_requests[] =
 {
    { "destroy", "", types + 0 },
 };
 
-static const struct wl_message xdg_popup_events[] = 
+static const struct wl_message xdg_popup_events[] =
 {
    { "popup_done", "u", types + 0 },
 };
 
-WL_EXPORT const struct wl_interface xdg_popup_interface = 
+WL_EXPORT const struct wl_interface xdg_popup_interface =
 {
-   "xdg_popup", 1, 
-   1, xdg_popup_requests, 
+   "xdg_popup", 1,
+   1, xdg_popup_requests,
    1, xdg_popup_events,
 };
index a172439..3cc1e70 100644 (file)
@@ -39,7 +39,7 @@ struct xdg_shell_interface
 # define XDG_SHELL_PING 0
 # define XDG_SHELL_PING_SINCE_VERSION 1
 
-static inline void 
+static inline void
 xdg_shell_send_ping(struct wl_resource *resource_, uint32_t serial)
 {
    wl_resource_post_event(resource_, XDG_SHELL_PING, serial);
@@ -95,13 +95,13 @@ struct xdg_surface_interface
 # define XDG_SURFACE_CONFIGURE_SINCE_VERSION 1
 # define XDG_SURFACE_CLOSE_SINCE_VERSION 1
 
-static inline void 
+static inline void
 xdg_surface_send_configure(struct wl_resource *resource_, int32_t w, int32_t h, struct wl_array *states, uint32_t serial)
 {
    wl_resource_post_event(resource_, XDG_SURFACE_CONFIGURE, w, h, states, serial);
 }
 
-static inline void 
+static inline void
 xdg_surface_send_close(struct wl_resource *resource_)
 {
    wl_resource_post_event(resource_, XDG_SURFACE_CLOSE);
@@ -115,7 +115,7 @@ struct xdg_popup_interface
 # define XDG_POPUP_POPUP_DONE 0
 # define XDG_POPUP_POPUP_DONE_SINCE_VERSION 1
 
-static inline void 
+static inline void
 xdg_popup_send_popup_done(struct wl_resource *resource_, uint32_t serial)
 {
    wl_resource_post_event(resource_, XDG_POPUP_POPUP_DONE, serial);
index 605667b..4ac59c0 100644 (file)
@@ -5,7 +5,7 @@
 
 #define XDG_SERVER_VERSION 4
 
-static void 
+static void
 _e_shell_surface_parent_set(E_Client *ec, struct wl_resource *parent_resource)
 {
    E_Pixmap *pp;
@@ -64,7 +64,7 @@ _e_shell_surface_parent_set(E_Client *ec, struct wl_resource *parent_resource)
    ec->icccm.transient_for = pwin;
 }
 
-static void 
+static void
 _e_shell_surface_mouse_down_helper(E_Client *ec, E_Binding_Event_Mouse_Button *ev, Eina_Bool move)
 {
    if (move)
@@ -72,7 +72,7 @@ _e_shell_surface_mouse_down_helper(E_Client *ec, E_Binding_Event_Mouse_Button *e
         /* tell E to start moving the client */
         e_client_act_move_begin(ec, ev);
 
-        /* we have to get a reference to the window_move action here, or else 
+        /* we have to get a reference to the window_move action here, or else
          * when e_client stops the move we will never get notified */
         ec->cur_mouse_action = e_action_find("window_move");
         if (ec->cur_mouse_action)
@@ -83,7 +83,7 @@ _e_shell_surface_mouse_down_helper(E_Client *ec, E_Binding_Event_Mouse_Button *e
         /* tell E to start resizing the client */
         e_client_act_resize_begin(ec, ev);
 
-        /* we have to get a reference to the window_resize action here, 
+        /* we have to get a reference to the window_resize action here,
          * or else when e_client stops the resize we will never get notified */
         ec->cur_mouse_action = e_action_find("window_resize");
         if (ec->cur_mouse_action)
@@ -109,7 +109,7 @@ _e_shell_surface_destroy(struct wl_resource *resource)
           {
              if (ec->comp_data->mapped)
                {
-                  if ((ec->comp_data->shell.surface) && 
+                  if ((ec->comp_data->shell.surface) &&
                       (ec->comp_data->shell.unmap))
                     ec->comp_data->shell.unmap(ec->comp_data->shell.surface);
                }
@@ -144,7 +144,7 @@ _e_shell_surface_cb_pong(struct wl_client *client EINA_UNUSED, struct wl_resourc
      }
 }
 
-static void 
+static void
 _e_shell_surface_cb_move(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *seat_resource, uint32_t serial EINA_UNUSED)
 {
    E_Client *ec;
@@ -154,8 +154,8 @@ _e_shell_surface_cb_move(struct wl_client *client EINA_UNUSED, struct wl_resourc
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -165,8 +165,8 @@ _e_shell_surface_cb_move(struct wl_client *client EINA_UNUSED, struct wl_resourc
    /* get compositor data from seat */
    if (!(cdata = wl_resource_get_user_data(seat_resource)))
      {
-        wl_resource_post_error(seat_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(seat_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Comp_Data for Seat");
         return;
      }
@@ -187,15 +187,15 @@ _e_shell_surface_cb_move(struct wl_client *client EINA_UNUSED, struct wl_resourc
         break;
      }
 
-   e_comp_object_frame_xy_unadjust(ec->frame, 
-                                   wl_fixed_to_int(cdata->ptr.x) + ec->client.x, 
-                                   wl_fixed_to_int(cdata->ptr.y) + ec->client.y, 
+   e_comp_object_frame_xy_unadjust(ec->frame,
+                                   wl_fixed_to_int(cdata->ptr.x) + ec->client.x,
+                                   wl_fixed_to_int(cdata->ptr.y) + ec->client.y,
                                    &ev.canvas.x, &ev.canvas.y);
 
    _e_shell_surface_mouse_down_helper(ec, &ev, EINA_TRUE);
 }
 
-static void 
+static void
 _e_shell_surface_cb_resize(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *seat_resource, uint32_t serial EINA_UNUSED, uint32_t edges)
 {
    E_Client *ec;
@@ -205,13 +205,13 @@ _e_shell_surface_cb_resize(struct wl_client *client EINA_UNUSED, struct wl_resou
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
 
-   if ((edges == 0) || (edges > 15) || 
+   if ((edges == 0) || (edges > 15) ||
        ((edges & 3) == 3) || ((edges & 12) == 12)) return;
 
    if ((ec->maximized) || (ec->fullscreen)) return;
@@ -219,8 +219,8 @@ _e_shell_surface_cb_resize(struct wl_client *client EINA_UNUSED, struct wl_resou
    /* get compositor data from seat */
    if (!(cdata = wl_resource_get_user_data(seat_resource)))
      {
-        wl_resource_post_error(seat_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(seat_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Comp_Data for Seat");
         return;
      }
@@ -248,15 +248,15 @@ _e_shell_surface_cb_resize(struct wl_client *client EINA_UNUSED, struct wl_resou
         break;
      }
 
-   e_comp_object_frame_xy_unadjust(ec->frame, 
-                                   wl_fixed_to_int(cdata->ptr.x) + ec->client.x, 
-                                   wl_fixed_to_int(cdata->ptr.y) + ec->client.y, 
+   e_comp_object_frame_xy_unadjust(ec->frame,
+                                   wl_fixed_to_int(cdata->ptr.x) + ec->client.x,
+                                   wl_fixed_to_int(cdata->ptr.y) + ec->client.y,
                                    &ev.canvas.x, &ev.canvas.y);
 
    _e_shell_surface_mouse_down_helper(ec, &ev, EINA_FALSE);
 }
 
-static void 
+static void
 _e_shell_surface_cb_toplevel_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    E_Client *ec;
@@ -264,8 +264,8 @@ _e_shell_surface_cb_toplevel_set(struct wl_client *client EINA_UNUSED, struct wl
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -284,7 +284,7 @@ _e_shell_surface_cb_toplevel_set(struct wl_client *client EINA_UNUSED, struct wl
    EC_CHANGED(ec);
 }
 
-static void 
+static void
 _e_shell_surface_cb_transient_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *parent_resource, int32_t x EINA_UNUSED, int32_t y EINA_UNUSED, uint32_t flags EINA_UNUSED)
 {
    E_Client *ec;
@@ -302,7 +302,7 @@ _e_shell_surface_cb_transient_set(struct wl_client *client EINA_UNUSED, struct w
    EC_CHANGED(ec);
 }
 
-static void 
+static void
 _e_shell_surface_cb_fullscreen_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, uint32_t method EINA_UNUSED, uint32_t framerate EINA_UNUSED, struct wl_resource *output_resource EINA_UNUSED)
 {
    E_Client *ec;
@@ -318,7 +318,7 @@ _e_shell_surface_cb_fullscreen_set(struct wl_client *client EINA_UNUSED, struct
      e_client_fullscreen(ec, e_config->fullscreen_policy);
 }
 
-static void 
+static void
 _e_shell_surface_cb_popup_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *seat_resource EINA_UNUSED, uint32_t serial EINA_UNUSED, struct wl_resource *parent_resource, int32_t x, int32_t y, uint32_t flags EINA_UNUSED)
 {
    E_Client *ec;
@@ -350,7 +350,7 @@ _e_shell_surface_cb_popup_set(struct wl_client *client EINA_UNUSED, struct wl_re
    EC_CHANGED(ec);
 }
 
-static void 
+static void
 _e_shell_surface_cb_maximized_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *output_resource EINA_UNUSED)
 {
    E_Client *ec;
@@ -360,8 +360,8 @@ _e_shell_surface_cb_maximized_set(struct wl_client *client EINA_UNUSED, struct w
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -371,7 +371,7 @@ _e_shell_surface_cb_maximized_set(struct wl_client *client EINA_UNUSED, struct w
      {
         unsigned int edges = 0;
 
-        e_client_maximize(ec, ((e_config->maximize_policy & E_MAXIMIZE_TYPE) | 
+        e_client_maximize(ec, ((e_config->maximize_policy & E_MAXIMIZE_TYPE) |
                                E_MAXIMIZE_BOTH));
 
         edges = (WL_SHELL_SURFACE_RESIZE_TOP | WL_SHELL_SURFACE_RESIZE_LEFT);
@@ -379,7 +379,7 @@ _e_shell_surface_cb_maximized_set(struct wl_client *client EINA_UNUSED, struct w
      }
 }
 
-static void 
+static void
 _e_shell_surface_cb_title_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, const char *title)
 {
    E_Client *ec;
@@ -387,8 +387,8 @@ _e_shell_surface_cb_title_set(struct wl_client *client EINA_UNUSED, struct wl_re
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -398,7 +398,7 @@ _e_shell_surface_cb_title_set(struct wl_client *client EINA_UNUSED, struct wl_re
    if (ec->frame) e_comp_object_frame_title_set(ec->frame, title);
 }
 
-static void 
+static void
 _e_shell_surface_cb_class_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, const char *clas)
 {
    E_Client *ec;
@@ -406,8 +406,8 @@ _e_shell_surface_cb_class_set(struct wl_client *client EINA_UNUSED, struct wl_re
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -421,7 +421,7 @@ _e_shell_surface_cb_class_set(struct wl_client *client EINA_UNUSED, struct wl_re
    EC_CHANGED(ec);
 }
 
-static const struct wl_shell_surface_interface _e_shell_surface_interface = 
+static const struct wl_shell_surface_interface _e_shell_surface_interface =
 {
    _e_shell_surface_cb_pong,
    _e_shell_surface_cb_move,
@@ -435,13 +435,13 @@ static const struct wl_shell_surface_interface _e_shell_surface_interface =
    _e_shell_surface_cb_class_set,
 };
 
-static void 
+static void
 _e_shell_surface_configure_send(struct wl_resource *resource, uint32_t edges, int32_t width, int32_t height)
 {
    wl_shell_surface_send_configure(resource, edges, width, height);
 }
 
-static void 
+static void
 _e_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
 {
    E_Client *ec;
@@ -452,16 +452,16 @@ _e_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_Coor
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
 
    if (ec->parent)
      {
-        if ((ec->netwm.type == E_WINDOW_TYPE_MENU) || 
-            (ec->netwm.type == E_WINDOW_TYPE_POPUP_MENU) || 
+        if ((ec->netwm.type == E_WINDOW_TYPE_MENU) ||
+            (ec->netwm.type == E_WINDOW_TYPE_POPUP_MENU) ||
             (ec->netwm.type == E_WINDOW_TYPE_DROPDOWN_MENU))
           {
              x = E_CLAMP(ec->parent->client.x + ec->comp_data->popup.x,
@@ -476,7 +476,7 @@ _e_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_Coor
    e_client_util_move_resize_without_frame(ec, x, y, w, h);
 }
 
-static void 
+static void
 _e_shell_surface_ping(struct wl_resource *resource)
 {
    E_Client *ec;
@@ -485,8 +485,8 @@ _e_shell_surface_ping(struct wl_resource *resource)
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -495,7 +495,7 @@ _e_shell_surface_ping(struct wl_resource *resource)
    wl_shell_surface_send_ping(ec->comp_data->shell.surface, serial);
 }
 
-static void 
+static void
 _e_shell_surface_map(struct wl_resource *resource)
 {
    E_Client *ec;
@@ -503,8 +503,8 @@ _e_shell_surface_map(struct wl_resource *resource)
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -519,7 +519,7 @@ _e_shell_surface_map(struct wl_resource *resource)
      }
 }
 
-static void 
+static void
 _e_shell_surface_unmap(struct wl_resource *resource)
 {
    E_Client *ec;
@@ -527,8 +527,8 @@ _e_shell_surface_unmap(struct wl_resource *resource)
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -541,7 +541,7 @@ _e_shell_surface_unmap(struct wl_resource *resource)
      }
 }
 
-static void 
+static void
 _e_shell_cb_shell_surface_get(struct wl_client *client, struct wl_resource *resource EINA_UNUSED, uint32_t id, struct wl_resource *surface_resource)
 {
    E_Pixmap *ep;
@@ -551,8 +551,8 @@ _e_shell_cb_shell_surface_get(struct wl_client *client, struct wl_resource *reso
    /* get the pixmap from this surface so we can find the client */
    if (!(ep = wl_resource_get_user_data(surface_resource)))
      {
-        wl_resource_post_error(surface_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(surface_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Pixmap Set On Surface");
         return;
      }
@@ -569,8 +569,8 @@ _e_shell_cb_shell_surface_get(struct wl_client *client, struct wl_resource *reso
         /* no client found. not internal window. maybe external client app ? */
         if (!(ec = e_client_new(NULL, ep, 0, 0)))
           {
-             wl_resource_post_error(surface_resource, 
-                                    WL_DISPLAY_ERROR_INVALID_OBJECT, 
+             wl_resource_post_error(surface_resource,
+                                    WL_DISPLAY_ERROR_INVALID_OBJECT,
                                     "No Client For Pixmap");
              return;
           }
@@ -581,8 +581,8 @@ _e_shell_cb_shell_surface_get(struct wl_client *client, struct wl_resource *reso
    /* get the client data */
    if (!(cdata = ec->comp_data))
      {
-        wl_resource_post_error(surface_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(surface_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Data For Client");
         return;
      }
@@ -590,22 +590,22 @@ _e_shell_cb_shell_surface_get(struct wl_client *client, struct wl_resource *reso
    /* check for existing shell surface */
    if (cdata->shell.surface)
      {
-        wl_resource_post_error(surface_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(surface_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "Client already has shell surface");
         return;
      }
 
    /* try to create a shell surface */
-   if (!(cdata->shell.surface = 
+   if (!(cdata->shell.surface =
          wl_resource_create(client, &wl_shell_surface_interface, 1, id)))
      {
         wl_resource_post_no_memory(surface_resource);
         return;
      }
 
-   wl_resource_set_implementation(cdata->shell.surface, 
-                                  &_e_shell_surface_interface, 
+   wl_resource_set_implementation(cdata->shell.surface,
+                                  &_e_shell_surface_interface,
                                   ec, _e_shell_surface_cb_destroy);
 
    cdata->surface = surface_resource;
@@ -616,7 +616,7 @@ _e_shell_cb_shell_surface_get(struct wl_client *client, struct wl_resource *reso
    cdata->shell.unmap = _e_shell_surface_unmap;
 }
 
-static void 
+static void
 _e_xdg_surface_state_add(struct wl_resource *resource, struct wl_array *states, uint32_t state)
 {
   uint32_t *s;
@@ -629,21 +629,21 @@ _e_xdg_surface_state_add(struct wl_resource *resource, struct wl_array *states,
   return;
 }
 
-static void 
+static void
 _e_xdg_shell_surface_configure_send(struct wl_resource *resource, uint32_t edges, int32_t width, int32_t height)
 {
    E_Client *ec;
    struct wl_array states;
    uint32_t serial;
 
-   DBG("XDG_SHELL: Surface Configure Send: %d \t%d %d\tEdges: %d", 
+   DBG("XDG_SHELL: Surface Configure Send: %d \t%d %d\tEdges: %d",
        wl_resource_get_id(resource), width, height, edges);
 
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -666,13 +666,13 @@ _e_xdg_shell_surface_configure_send(struct wl_resource *resource, uint32_t edges
    wl_array_release(&states);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    _e_shell_surface_destroy(resource);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_parent_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *parent_resource)
 {
    E_Client *ec;
@@ -688,7 +688,7 @@ _e_xdg_shell_surface_cb_parent_set(struct wl_client *client EINA_UNUSED, struct
    _e_shell_surface_parent_set(ec, parent_resource);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_title_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, const char *title)
 {
    E_Client *ec;
@@ -696,8 +696,8 @@ _e_xdg_shell_surface_cb_title_set(struct wl_client *client EINA_UNUSED, struct w
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -707,7 +707,7 @@ _e_xdg_shell_surface_cb_title_set(struct wl_client *client EINA_UNUSED, struct w
    if (ec->frame) e_comp_object_frame_title_set(ec->frame, title);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_app_id_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, const char *id)
 {
    E_Client *ec;
@@ -715,8 +715,8 @@ _e_xdg_shell_surface_cb_app_id_set(struct wl_client *client EINA_UNUSED, struct
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -731,7 +731,7 @@ _e_xdg_shell_surface_cb_app_id_set(struct wl_client *client EINA_UNUSED, struct
    EC_CHANGED(ec);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_window_menu_show(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *seat_resource EINA_UNUSED, uint32_t serial EINA_UNUSED, int32_t x, int32_t y)
 {
    E_Client *ec;
@@ -750,7 +750,7 @@ _e_xdg_shell_surface_cb_window_menu_show(struct wl_client *client EINA_UNUSED, s
      e_int_client_menu_show(ec, x, y, 0, timestamp);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_move(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *seat_resource, uint32_t serial EINA_UNUSED)
 {
    E_Client *ec;
@@ -760,8 +760,8 @@ _e_xdg_shell_surface_cb_move(struct wl_client *client EINA_UNUSED, struct wl_res
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -771,8 +771,8 @@ _e_xdg_shell_surface_cb_move(struct wl_client *client EINA_UNUSED, struct wl_res
    /* get compositor data from seat */
    if (!(cdata = wl_resource_get_user_data(seat_resource)))
      {
-        wl_resource_post_error(seat_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(seat_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Comp_Data for Seat");
         return;
      }
@@ -793,15 +793,15 @@ _e_xdg_shell_surface_cb_move(struct wl_client *client EINA_UNUSED, struct wl_res
         break;
      }
 
-   e_comp_object_frame_xy_unadjust(ec->frame, 
-                                   wl_fixed_to_int(cdata->ptr.x) + ec->client.x, 
-                                   wl_fixed_to_int(cdata->ptr.y) + ec->client.y, 
+   e_comp_object_frame_xy_unadjust(ec->frame,
+                                   wl_fixed_to_int(cdata->ptr.x) + ec->client.x,
+                                   wl_fixed_to_int(cdata->ptr.y) + ec->client.y,
                                    &ev.canvas.x, &ev.canvas.y);
 
    _e_shell_surface_mouse_down_helper(ec, &ev, EINA_TRUE);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_resize(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *seat_resource, uint32_t serial EINA_UNUSED, uint32_t edges)
 {
    E_Client *ec;
@@ -814,13 +814,13 @@ _e_xdg_shell_surface_cb_resize(struct wl_client *client EINA_UNUSED, struct wl_r
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
 
-   if ((edges == 0) || (edges > 15) || 
+   if ((edges == 0) || (edges > 15) ||
        ((edges & 3) == 3) || ((edges & 12) == 12)) return;
 
    if ((ec->maximized) || (ec->fullscreen)) return;
@@ -828,8 +828,8 @@ _e_xdg_shell_surface_cb_resize(struct wl_client *client EINA_UNUSED, struct wl_r
    /* get compositor data from seat */
    if (!(cdata = wl_resource_get_user_data(seat_resource)))
      {
-        wl_resource_post_error(seat_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(seat_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Comp_Data for Seat");
         return;
      }
@@ -855,21 +855,21 @@ _e_xdg_shell_surface_cb_resize(struct wl_client *client EINA_UNUSED, struct wl_r
         break;
      }
 
-   e_comp_object_frame_xy_unadjust(ec->frame, 
-                                   wl_fixed_to_int(cdata->ptr.x) + ec->client.x, 
-                                   wl_fixed_to_int(cdata->ptr.y) + ec->client.y, 
+   e_comp_object_frame_xy_unadjust(ec->frame,
+                                   wl_fixed_to_int(cdata->ptr.x) + ec->client.x,
+                                   wl_fixed_to_int(cdata->ptr.y) + ec->client.y,
                                    &ev.canvas.x, &ev.canvas.y);
 
    _e_shell_surface_mouse_down_helper(ec, &ev, EINA_FALSE);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_ack_configure(struct wl_client *client EINA_UNUSED, struct wl_resource *resource EINA_UNUSED, uint32_t serial EINA_UNUSED)
 {
    /* No-Op */
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_window_geometry_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource EINA_UNUSED, int32_t x EINA_UNUSED, int32_t y EINA_UNUSED, int32_t w EINA_UNUSED, int32_t h EINA_UNUSED)
 {
    /* E_Client *ec; */
@@ -887,7 +887,7 @@ _e_xdg_shell_surface_cb_window_geometry_set(struct wl_client *client EINA_UNUSED
    /*     wl_resource_get_id(resource), x, y, w, h); */
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_maximized_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    E_Client *ec;
@@ -895,21 +895,21 @@ _e_xdg_shell_surface_cb_maximized_set(struct wl_client *client EINA_UNUSED, stru
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
 
-   if (!ec->lock_user_maximize) 
+   if (!ec->lock_user_maximize)
      {
-        e_client_maximize(ec, ((e_config->maximize_policy & E_MAXIMIZE_TYPE) | 
+        e_client_maximize(ec, ((e_config->maximize_policy & E_MAXIMIZE_TYPE) |
                                E_MAXIMIZE_BOTH));
         _e_xdg_shell_surface_configure_send(resource, 0, ec->w, ec->h);
      }
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_maximized_unset(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    E_Client *ec;
@@ -917,8 +917,8 @@ _e_xdg_shell_surface_cb_maximized_unset(struct wl_client *client EINA_UNUSED, st
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -927,7 +927,7 @@ _e_xdg_shell_surface_cb_maximized_unset(struct wl_client *client EINA_UNUSED, st
    _e_xdg_shell_surface_configure_send(resource, 0, ec->w, ec->h);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_fullscreen_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, struct wl_resource *output_resource EINA_UNUSED)
 {
    E_Client *ec;
@@ -935,8 +935,8 @@ _e_xdg_shell_surface_cb_fullscreen_set(struct wl_client *client EINA_UNUSED, str
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -945,7 +945,7 @@ _e_xdg_shell_surface_cb_fullscreen_set(struct wl_client *client EINA_UNUSED, str
      e_client_fullscreen(ec, e_config->fullscreen_policy);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_fullscreen_unset(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    E_Client *ec;
@@ -953,8 +953,8 @@ _e_xdg_shell_surface_cb_fullscreen_unset(struct wl_client *client EINA_UNUSED, s
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -963,7 +963,7 @@ _e_xdg_shell_surface_cb_fullscreen_unset(struct wl_client *client EINA_UNUSED, s
      e_client_unfullscreen(ec);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_cb_minimized_set(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    E_Client *ec;
@@ -971,8 +971,8 @@ _e_xdg_shell_surface_cb_minimized_set(struct wl_client *client EINA_UNUSED, stru
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -981,7 +981,7 @@ _e_xdg_shell_surface_cb_minimized_set(struct wl_client *client EINA_UNUSED, stru
      e_client_iconify(ec);
 }
 
-static const struct xdg_surface_interface _e_xdg_surface_interface = 
+static const struct xdg_surface_interface _e_xdg_surface_interface =
 {
    _e_xdg_shell_surface_cb_destroy,
    _e_xdg_shell_surface_cb_parent_set,
@@ -999,14 +999,14 @@ static const struct xdg_surface_interface _e_xdg_surface_interface =
    _e_xdg_shell_surface_cb_minimized_set,
 };
 
-static void 
+static void
 _e_xdg_shell_cb_unstable_version(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, int32_t version)
 {
    if (version > 1)
      wl_resource_post_error(resource, 1, "XDG Version Not Implemented Yet");
 }
 
-static void 
+static void
 _e_xdg_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
 {
    E_Client *ec;
@@ -1018,16 +1018,16 @@ _e_xdg_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
 
    if (ec->parent)
      {
-        if ((ec->netwm.type == E_WINDOW_TYPE_MENU) || 
-            (ec->netwm.type == E_WINDOW_TYPE_POPUP_MENU) || 
+        if ((ec->netwm.type == E_WINDOW_TYPE_MENU) ||
+            (ec->netwm.type == E_WINDOW_TYPE_POPUP_MENU) ||
             (ec->netwm.type == E_WINDOW_TYPE_DROPDOWN_MENU))
           {
              x = ec->parent->client.x + ec->comp_data->popup.x;
@@ -1043,7 +1043,7 @@ _e_xdg_shell_surface_configure(struct wl_resource *resource, Evas_Coord x, Evas_
    /* TODO: ack configure ?? */
 }
 
-static void 
+static void
 _e_xdg_shell_surface_ping(struct wl_resource *resource)
 {
    E_Client *ec;
@@ -1052,8 +1052,8 @@ _e_xdg_shell_surface_ping(struct wl_resource *resource)
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -1063,7 +1063,7 @@ _e_xdg_shell_surface_ping(struct wl_resource *resource)
      xdg_shell_send_ping(ec->comp->wl_comp_data->shell_interface.xdg_shell, serial);
 }
 
-static void 
+static void
 _e_xdg_shell_surface_map(struct wl_resource *resource)
 {
    E_Client *ec;
@@ -1073,8 +1073,8 @@ _e_xdg_shell_surface_map(struct wl_resource *resource)
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -1086,14 +1086,14 @@ _e_xdg_shell_surface_map(struct wl_resource *resource)
         evas_object_show(ec->frame);
         ec->comp_data->mapped = EINA_TRUE;
 
-        /* FIXME: sometimes popup surfaces Do Not raise above their 
+        /* FIXME: sometimes popup surfaces Do Not raise above their
          * respective parents... */
         /* if (ec->netwm.type == E_WINDOW_TYPE_POPUP_MENU) */
         /*   e_client_raise_latest_set(ec); */
      }
 }
 
-static void 
+static void
 _e_xdg_shell_surface_unmap(struct wl_resource *resource)
 {
    E_Client *ec;
@@ -1103,8 +1103,8 @@ _e_xdg_shell_surface_unmap(struct wl_resource *resource)
    /* get the client for this resource */
    if (!(ec = wl_resource_get_user_data(resource)))
      {
-        wl_resource_post_error(resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Client For Shell Surface");
         return;
      }
@@ -1117,7 +1117,7 @@ _e_xdg_shell_surface_unmap(struct wl_resource *resource)
      }
 }
 
-static void 
+static void
 _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resource EINA_UNUSED, uint32_t id, struct wl_resource *surface_resource)
 {
    E_Pixmap *ep;
@@ -1129,8 +1129,8 @@ _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resour
    /* get the pixmap from this surface so we can find the client */
    if (!(ep = wl_resource_get_user_data(surface_resource)))
      {
-        wl_resource_post_error(surface_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(surface_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Pixmap Set On Surface");
         return;
      }
@@ -1147,8 +1147,8 @@ _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resour
         /* no client found. not internal window. maybe external client app ? */
         if (!(ec = e_client_new(NULL, ep, 0, 0)))
           {
-             wl_resource_post_error(surface_resource, 
-                                    WL_DISPLAY_ERROR_INVALID_OBJECT, 
+             wl_resource_post_error(surface_resource,
+                                    WL_DISPLAY_ERROR_INVALID_OBJECT,
                                     "No Client For Pixmap");
              return;
           }
@@ -1159,8 +1159,8 @@ _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resour
    /* get the client data */
    if (!(cdata = ec->comp_data))
      {
-        wl_resource_post_error(surface_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(surface_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Data For Client");
         return;
      }
@@ -1168,14 +1168,14 @@ _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resour
    /* check for existing shell surface */
    if (cdata->shell.surface)
      {
-        wl_resource_post_error(surface_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(surface_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "Client already has XDG shell surface");
         return;
      }
 
    /* try to create a shell surface */
-   if (!(cdata->shell.surface = 
+   if (!(cdata->shell.surface =
          wl_resource_create(client, &xdg_surface_interface, 1, id)))
      {
         ERR("Could not create xdg shell surface");
@@ -1183,8 +1183,8 @@ _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resour
         return;
      }
 
-   wl_resource_set_implementation(cdata->shell.surface, 
-                                  &_e_xdg_surface_interface, ec, 
+   wl_resource_set_implementation(cdata->shell.surface,
+                                  &_e_xdg_surface_interface, ec,
                                   _e_shell_surface_cb_destroy);
 
    cdata->surface = surface_resource;
@@ -1203,18 +1203,18 @@ _e_xdg_shell_cb_surface_get(struct wl_client *client, struct wl_resource *resour
    ec->comp_data->set_win_type = EINA_TRUE;
 }
 
-static void 
+static void
 _e_xdg_shell_popup_cb_destroy(struct wl_client *client EINA_UNUSED, struct wl_resource *resource)
 {
    _e_shell_surface_destroy(resource);
 }
 
-static const struct xdg_popup_interface _e_xdg_popup_interface = 
+static const struct xdg_popup_interface _e_xdg_popup_interface =
 {
    _e_xdg_shell_popup_cb_destroy,
 };
 
-static void 
+static void
 _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource EINA_UNUSED, uint32_t id, struct wl_resource *surface_resource, struct wl_resource *parent_resource, struct wl_resource *seat_resource EINA_UNUSED, uint32_t serial EINA_UNUSED, int32_t x, int32_t y, uint32_t flags EINA_UNUSED)
 {
    E_Pixmap *ep;
@@ -1229,8 +1229,8 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
    /* get the pixmap from this surface so we can find the client */
    if (!(ep = wl_resource_get_user_data(surface_resource)))
      {
-        wl_resource_post_error(surface_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(surface_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Pixmap Set On Surface");
         return;
      }
@@ -1247,8 +1247,8 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
         /* no client found. create one */
         if (!(ec = e_client_new(NULL, ep, 0, 1)))
           {
-             wl_resource_post_error(surface_resource, 
-                                    WL_DISPLAY_ERROR_INVALID_OBJECT, 
+             wl_resource_post_error(surface_resource,
+                                    WL_DISPLAY_ERROR_INVALID_OBJECT,
                                     "No Client For Pixmap");
              return;
           }
@@ -1259,8 +1259,8 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
    /* get the client data */
    if (!(cdata = ec->comp_data))
      {
-        wl_resource_post_error(surface_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(surface_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "No Data For Client");
         return;
      }
@@ -1268,8 +1268,8 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
    /* check for existing shell surface */
    if (cdata->shell.surface)
      {
-        wl_resource_post_error(surface_resource, 
-                               WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(surface_resource,
+                               WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "Client already has shell popup surface");
         return;
      }
@@ -1279,12 +1279,12 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
      {
         wl_resource_post_error(surface_resource,
                                WL_DISPLAY_ERROR_INVALID_OBJECT,
-                              "Popup requires a parent shell surface");
+                               "Popup requires a parent shell surface");
         return;
      }
 
    /* try to create a shell surface */
-   if (!(cdata->shell.surface = 
+   if (!(cdata->shell.surface =
          wl_resource_create(client, &xdg_popup_interface, 1, id)))
      {
         ERR("Could not create xdg shell surface");
@@ -1292,7 +1292,7 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
         return;
      }
 
-   wl_resource_set_implementation(cdata->shell.surface, 
+   wl_resource_set_implementation(cdata->shell.surface,
                                   &_e_xdg_popup_interface, ec, NULL);
 
    cdata->surface = surface_resource;
@@ -1328,7 +1328,7 @@ _e_xdg_shell_cb_popup_get(struct wl_client *client, struct wl_resource *resource
 
 }
 
-static void 
+static void
 _e_xdg_shell_cb_pong(struct wl_client *client EINA_UNUSED, struct wl_resource *resource, uint32_t serial EINA_UNUSED)
 {
    E_Client *ec;
@@ -1340,12 +1340,12 @@ _e_xdg_shell_cb_pong(struct wl_client *client EINA_UNUSED, struct wl_resource *r
      }
 }
 
-static const struct wl_shell_interface _e_shell_interface = 
+static const struct wl_shell_interface _e_shell_interface =
 {
    _e_shell_cb_shell_surface_get
 };
 
-static const struct xdg_shell_interface _e_xdg_shell_interface = 
+static const struct xdg_shell_interface _e_xdg_shell_interface =
 {
    _e_xdg_shell_cb_unstable_version,
    _e_xdg_shell_cb_surface_get,
@@ -1353,7 +1353,7 @@ static const struct xdg_shell_interface _e_xdg_shell_interface =
    _e_xdg_shell_cb_pong
 };
 
-static void 
+static void
 _e_xdg_shell_cb_unbind(struct wl_resource *resource)
 {
    E_Comp_Data *cdata;
@@ -1363,7 +1363,7 @@ _e_xdg_shell_cb_unbind(struct wl_resource *resource)
    cdata->shell_interface.xdg_shell = NULL;
 }
 
-static int 
+static int
 _e_xdg_shell_cb_dispatch(const void *implementation EINA_UNUSED, void *target, uint32_t opcode, const struct wl_message *message EINA_UNUSED, union wl_argument *args)
 {
    E_Comp_Data *cdata;
@@ -1374,27 +1374,27 @@ _e_xdg_shell_cb_dispatch(const void *implementation EINA_UNUSED, void *target, u
 
    if (opcode != 0)
      {
-        wl_resource_post_error(res, WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(res, WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "Must call use_unstable_version first");
         return 0;
      }
 
    if (args[0].i != XDG_SERVER_VERSION)
      {
-        wl_resource_post_error(res, WL_DISPLAY_ERROR_INVALID_OBJECT, 
+        wl_resource_post_error(res, WL_DISPLAY_ERROR_INVALID_OBJECT,
                                "Incompatible versions. "
-                               "Server: %d, Client: %d", 
+                               "Server: %d, Client: %d",
                                XDG_SERVER_VERSION, args[0].i);
         return 0;
      }
 
-   wl_resource_set_implementation(res, &_e_xdg_shell_interface, cdata, 
+   wl_resource_set_implementation(res, &_e_xdg_shell_interface, cdata,
                                   _e_xdg_shell_cb_unbind);
 
    return 1;
 }
 
-static void 
+static void
 _e_shell_cb_unbind(struct wl_resource *resource)
 {
    E_Comp_Data *cdata;
@@ -1404,7 +1404,7 @@ _e_shell_cb_unbind(struct wl_resource *resource)
    cdata->shell_interface.shell = NULL;
 }
 
-static void 
+static void
 _e_shell_cb_bind(struct wl_client *client, void *data, uint32_t version, uint32_t id)
 {
    E_Comp_Data *cdata;
@@ -1423,11 +1423,11 @@ _e_shell_cb_bind(struct wl_client *client, void *data, uint32_t version, uint32_
      }
 
    cdata->shell_interface.shell = res;
-   wl_resource_set_implementation(res, &_e_shell_interface, cdata, 
+   wl_resource_set_implementation(res, &_e_shell_interface, cdata,
                                   _e_shell_cb_unbind);
 }
 
-static void 
+static void
 _e_xdg_shell_cb_bind(struct wl_client *client, void *data, uint32_t version, uint32_t id)
 {
    E_Comp_Data *cdata;
@@ -1467,7 +1467,7 @@ e_modapi_init(E_Module *m)
    if (!(cdata = comp->wl_comp_data)) return NULL;
 
    /* try to create global shell interface */
-   if (!wl_global_create(cdata->wl.disp, &wl_shell_interface, 1, 
+   if (!wl_global_create(cdata->wl.disp, &wl_shell_interface, 1,
                          cdata, _e_shell_cb_bind))
      {
         ERR("Could not create shell global: %m");
@@ -1475,7 +1475,7 @@ e_modapi_init(E_Module *m)
      }
 
    /* try to create global xdg_shell interface */
-   if (!wl_global_create(cdata->wl.disp, &xdg_shell_interface, 1, 
+   if (!wl_global_create(cdata->wl.disp, &xdg_shell_interface, 1,
                          cdata, _e_xdg_shell_cb_bind))
      {
         ERR("Could not create xdg_shell global: %m");
@@ -1485,7 +1485,7 @@ e_modapi_init(E_Module *m)
    return m;
 }
 
-EAPI int 
+EAPI int
 e_modapi_shutdown(E_Module *m EINA_UNUSED)
 {
    return 1;