elm_cursor: add style name for sub cursor

Missing style name for sub cursor call the next error output:

ERR<24193>:elementary lib/elementary/els_cursor.c:734 elm_cursor_theme()
Could not apply the theme to the cursor style=(null)

Also this error call extra recalc for cursor hot spots.

Fixes T5408
@fix
This commit is contained in:
Vyacheslav Reutskiy 2017-04-26 08:57:22 +03:00
parent 540de0e254
commit a17a91b22f
1 changed files with 1 additions and 0 deletions

View File

@ -591,6 +591,7 @@ elm_object_sub_cursor_set(Evas_Object *eventarea, Evas_Object *owner, const char
cur->eventarea = eventarea;
cur->theme_search = !_elm_config->cursor_engine_only;
cur->visible = EINA_FALSE;
cur->style = eina_stringshare_add("default");
cur->cursor_name = eina_stringshare_add(cursor);
if (!cur->cursor_name)