ELM_SAFE_FREE(sd->longpress_timer, ecore_timer_del);
sd->longpress_timer = ecore_timer_add
(_elm_config->longpress_timeout, _long_press_cb, data);
- sd->long_pressed = EINA_FALSE;
}
else if (ev->button == 3)
{
sd->ox = ev->canvas.x - (ex + cx + (cw / 2));
sd->oy = ev->canvas.y - (ey + cy + (ch / 2));
+ ELM_SAFE_FREE(sd->longpress_timer, ecore_timer_del);
+ sd->long_pressed = EINA_FALSE;
if (_elm_config->magnifier_enable)
{
_magnifier_create(data);
sd->start_handler_down = EINA_FALSE;
if (_elm_config->magnifier_enable)
_magnifier_hide(data);
- if (!_elm_config->desktop_entry)
+ if ((!_elm_config->desktop_entry) && (sd->long_pressed))
_menu_call(data);
}
edje_object_part_text_cursor_geometry_get(sd->entry_edje,
"elm.text",
&cx, &cy, NULL, &ch);
+ ELM_SAFE_FREE(sd->longpress_timer, ecore_timer_del);
+ sd->long_pressed = EINA_FALSE;
if (_elm_config->magnifier_enable)
_magnifier_move(data, ex + cx, ey + cy + (ch / 2));
}
sd->ox = ev->canvas.x - (ex + cx + (cw / 2));
sd->oy = ev->canvas.y - (ey + cy + (ch / 2));
+ ELM_SAFE_FREE(sd->longpress_timer, ecore_timer_del);
+ sd->long_pressed = EINA_FALSE;
if (_elm_config->magnifier_enable)
{
_magnifier_create(data);
sd->end_handler_down = EINA_FALSE;
if (_elm_config->magnifier_enable)
_magnifier_hide(data);
- if (!_elm_config->desktop_entry)
+ if ((!_elm_config->desktop_entry) && (sd->long_pressed))
_menu_call(data);
}
edje_object_part_text_cursor_geometry_get(sd->entry_edje,
"elm.text",
&cx, &cy, NULL, &ch);
+ ELM_SAFE_FREE(sd->longpress_timer, ecore_timer_del);
+ sd->long_pressed = EINA_FALSE;
if (_elm_config->magnifier_enable)
_magnifier_move(data, ex + cx, ey + cy + (ch / 2));
}