if (!(ec = wl_resource_get_user_data(resource))) return;
if (e_object_is_del(E_OBJECT(ec))) return;
- e_pointer_object_set(e_comp->pointer, ec->frame, ec->x, ec->y);
+ e_pointer_object_set(e_comp->pointer, ec->frame, 0, 0);
}
static void
ec->re_manage = 1;
ec->ignored = 0;
- // TODO: this should be transformed to the local coordinate of pointer surface
- ec->x = x;
- ec->y = y;
-
ec->lock_focus_out = ec->layer_block = ec->visible = 1;
if (!e_config->show_cursor) ec->override = 1;
ec->icccm.title = eina_stringshare_add("Cursor");
/* move the cursor image with the calcaultion of the hot spot */
static void
-_e_pointer_move(E_Pointer *ptr, int x, int y)
+_e_pointer_position_update(E_Pointer *ptr)
{
int nx, ny;
{
evas_object_map_set(ec->frame, NULL);
evas_object_map_enable_set(ec->frame, EINA_FALSE);
- _e_pointer_move(ptr, x, y);
+ _e_pointer_position_update(ptr);
return;
}
ec->override = 0; /* do not ignore the cursor_ec to set the image object */
}
+ ptr->o_ptr = obj;
+
/* apply the cursor obj rotation */
_e_pointer_rotation_apply(ptr);
/* move the pointer to the current position */
- _e_pointer_move(ptr, ptr->x, ptr->y);
+ _e_pointer_position_update(ptr);
/* show cursor object */
evas_object_show(obj);
- ptr->o_ptr = obj;
}
}
if (ptr->device != E_POINTER_TOUCH) ptr->device = E_POINTER_TOUCH;
_e_pointer_rotation_apply(ptr);
- _e_pointer_move(ptr, ptr->x, ptr->y);
+ _e_pointer_position_update(ptr);
}
EINTERN void
if (ptr->device != E_POINTER_MOUSE) ptr->device = E_POINTER_MOUSE;
_e_pointer_rotation_apply(ptr);
- _e_pointer_move(ptr, ptr->x, ptr->y);
+ _e_pointer_position_update(ptr);
}
E_API void
ptr->rotation = rotation;
_e_pointer_rotation_apply(ptr);
- _e_pointer_move(ptr, ptr->x, ptr->y);
+ _e_pointer_position_update(ptr);
}
E_API void