elementary/elm_entry : cursor geometry should be changed only when

focused.


SVN revision: 61787
This commit is contained in:
WooHyun Jung 2011-07-27 04:57:18 +00:00
parent 05cbb97d7c
commit a03291c9af
1 changed files with 2 additions and 1 deletions

View File

@ -548,6 +548,7 @@ _recalc_cursor_geometry(Evas_Object *obj)
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
evas_object_smart_callback_call(obj, SIG_CURSOR_CHANGED, NULL);
if (!elm_object_focus_get(obj)) return;
if (!wd->deferred_recalc_job)
{
Evas_Coord cx, cy, cw, ch;
@ -619,7 +620,7 @@ _elm_win_recalc_job(void *data)
}
}
if (wd->deferred_cur)
if ((wd->deferred_cur) && (elm_object_focus_get(data)))
{
Evas_Coord cx, cy, cw, ch;
edje_object_part_text_cursor_geometry_get(wd->ent, "elm.text",