ev->data = (void *) data;
ev->timestamp = timestamp;
- ev->device = _evas_device_top_get(eo_e);
+ ev->device = efl_ref(_evas_device_top_get(eo_e));
ev->action = down ? EFL_POINTER_ACTION_DOWN : EFL_POINTER_ACTION_UP;
ev->button = b;
ev->button_flags = flags;
- ev->device = _evas_device_top_get(e->evas);
ev->radius = 1;
ev->radius_x = 1;
ev->radius_y = 1;
ev->timestamp = timestamp;
ev->data = (void *) data;
- ev->device = _evas_device_top_get(e->evas);
+ ev->device = efl_ref(_evas_device_top_get(e->evas));
_canvas_event_feed_mouse_cancel_internal(e, ev);
ev->modifiers = &(e->modifiers);
ev->locks = &(e->locks);
ev->event_flags = e->default_event_flags;
- ev->device = efl_ref(_evas_device_top_get(eo_e));
ev->action = EFL_POINTER_ACTION_WHEEL;
ev->value_flags |= value_flags;
eina_list_free(copy);
_evas_post_event_callback_call(eo_e, e);
- efl_unref(ev->device);
efl_del(evt);
_evas_unwalk(e);
}
ev->wheel.z = z;
ev->timestamp = timestamp;
ev->data = (void *) data;
+ ev->device = efl_ref(_evas_device_top_get(eo_e));
_canvas_event_feed_mouse_wheel_internal(eo_e, ev);
efl_del(evt);
ev->data = (void *) data;
ev->timestamp = timestamp;
- ev->device = _evas_device_top_get(eo_e);
+ ev->device = efl_ref(_evas_device_top_get(eo_e));
ev->cur.x = x;
ev->cur.y = y;
ev->timestamp = timestamp;
ev->data = (void *) data;
- ev->device = _evas_device_top_get(eo_e);
+ ev->device = efl_ref(_evas_device_top_get(eo_e));
if (in)
_canvas_event_feed_mouse_in_internal(eo_e, ev);
ev->button_flags = flags;
ev->timestamp = timestamp;
ev->data = (void *) data;
- ev->device = _evas_device_top_get(eo_e);
+ ev->device = efl_ref(_evas_device_top_get(eo_e));
switch (action)
{
ev->timestamp = timestamp;
ev->keycode = keycode;
ev->no_stringshare = EINA_TRUE;
- ev->device = _evas_device_top_get(e->evas);
+ ev->device = efl_ref(_evas_device_top_get(e->evas));
if (down)
_canvas_event_feed_key_down_internal(e, ev);
_evas_unwalk(e);
_evas_object_event_new();
- efl_unref(ev->device);
efl_del(evt);
}
ev->cur.y = y;
/* FIXME: set proper device based on the device id (X or WL specific) */
- ev->device = _evas_device_top_get(eo_e); // FIXME
+ ev->device = efl_ref(_evas_device_top_get(eo_e)); // FIXME
(void) device;
_canvas_event_feed_axis_update_internal(e, ev);