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;
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:
{
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) ||
* 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;
{
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);
}
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)))
{
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;