elm - cursor - don't get window id if event area obj is not a window

This commit is contained in:
Carsten Haitzler 2014-04-01 10:06:14 +09:00
parent e416ea19a5
commit d85c9ac689
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ _elm_cursor_cur_set(Elm_Cursor *cur)
cur->use_engine = EINA_TRUE;
}
if (cur->use_engine)
if ((cur->use_engine) && (eo_isa(cur->eventarea, ELM_OBJ_WIN_CLASS)))
{
#ifdef HAVE_ELEMENTARY_X
cur->x.win = elm_win_xwindow_get(cur->eventarea);