e_client: substitute e_input APIS for ecore_evas_pointer APIs 21/153121/2
authorSung-Jin Park <sj76.park@samsung.com>
Wed, 27 Sep 2017 11:16:40 +0000 (20:16 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 28 Sep 2017 05:43:40 +0000 (05:43 +0000)
Change-Id: I0ee755325119425550c96044410d76afb8043378
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/bin/e_client.c

index b917135..e89cb75 100644 (file)
@@ -200,7 +200,7 @@ _e_client_pointer_warp_to_center_timer(void *data EINA_UNUSED)
         int x, y;
         double spd;
 
-        ecore_evas_pointer_xy_get(e_comp->ee, &x, &y);
+        e_input_device_pointer_xy_get(NULL, &x, &y);
         /* move hasn't happened yet */
         if ((x == warp_x[1]) && (y == warp_y[1]))
            return EINA_TRUE;
@@ -223,7 +223,7 @@ _e_client_pointer_warp_to_center_timer(void *data EINA_UNUSED)
              warp_to = 0;
              goto cleanup;
           }
-        ecore_evas_pointer_warp(e_comp->ee, warp_x[0], warp_y[0]);
+        e_input_device_pointer_warp(NULL, warp_x[0], warp_y[0]);
         return ECORE_CALLBACK_RENEW;
      }
 cleanup:
@@ -2565,7 +2565,7 @@ _e_client_eval(E_Client *ec)
      {
         int x, y;
 
-        ecore_evas_pointer_xy_get(e_comp->ee, &x, &y);
+        e_input_device_pointer_xy_get(NULL, &x, &y);
         if ((!ec->placed) && (!ec->re_manage) &&
             (e_config->window_placement_policy == E_WINDOW_PLACEMENT_MANUAL) &&
             (!((ec->icccm.transient_for != 0) ||
@@ -6167,9 +6167,9 @@ e_client_under_pointer_get(E_Desk *desk, E_Client *exclude)
     * zone of either the given desk or the desk of the excluded
     * window, so return if neither is given */
    if (desk)
-     ecore_evas_pointer_xy_get(e_comp->ee, &x, &y);
+     e_input_device_pointer_xy_get(NULL, &x, &y);
    else if (exclude)
-     ecore_evas_pointer_xy_get(e_comp->ee, &x, &y);
+     e_input_device_pointer_xy_get(NULL, &x, &y);
    else
      return NULL;
 
@@ -6202,7 +6202,7 @@ e_client_pointer_warp_to_center_now(E_Client *ec)
 {
    if (warp_client == ec)
      {
-        ecore_evas_pointer_warp(e_comp->ee, warp_to_x, warp_to_y);
+        e_input_device_pointer_warp(NULL, warp_to_x, warp_to_y);
         warp_to = 0;
         _e_client_pointer_warp_to_center_timer(NULL);
      }
@@ -6223,7 +6223,7 @@ e_client_pointer_warp_to_center(E_Client *ec)
    if (!ec->zone) return 0;
    /* Only warp the pointer if it is not already in the area of
     * the given border */
-   ecore_evas_pointer_xy_get(e_comp->ee, &x, &y);
+   e_input_device_pointer_xy_get(NULL, &x, &y);
    if ((x >= ec->x) && (x <= (ec->x + ec->w)) &&
        (y >= ec->y) && (y <= (ec->y + ec->h)))
      {
@@ -6254,7 +6254,7 @@ e_client_pointer_warp_to_center(E_Client *ec)
 
    warp_to = 1;
    warp_client = ec;
-   ecore_evas_pointer_xy_get(e_comp->ee, &warp_x[0], &warp_y[0]);
+   e_input_device_pointer_xy_get(NULL, &warp_x[0], &warp_y[0]);
    if (warp_timer) ecore_timer_del(warp_timer);
    warp_timer = ecore_timer_add(0.01, _e_client_pointer_warp_to_center_timer, ec);
    return 1;