forked from enlightenment/efl
Revert "Reduce additional call to eina_stringshare_replace."
This reverts commit f4f44c777a
.
This commit is contained in:
parent
c244dfe89e
commit
0c88d8e8ce
|
@ -240,11 +240,11 @@ ecore_wl_input_cursor_from_name_set(Ecore_Wl_Input *input, const char *cursor_na
|
||||||
|
|
||||||
_pointer_update_stop(input);
|
_pointer_update_stop(input);
|
||||||
|
|
||||||
|
eina_stringshare_replace(&input->cursor_name, cursor_name);
|
||||||
|
|
||||||
/* No cursor. Set to default Left Pointer */
|
/* No cursor. Set to default Left Pointer */
|
||||||
if (!cursor_name)
|
if (!cursor_name)
|
||||||
eina_stringshare_replace(&input->cursor_name, "left_ptr");
|
eina_stringshare_replace(&input->cursor_name, "left_ptr");
|
||||||
else
|
|
||||||
eina_stringshare_replace(&input->cursor_name, cursor_name);
|
|
||||||
|
|
||||||
/* try to get this cursor from the theme */
|
/* try to get this cursor from the theme */
|
||||||
if (!(cursor = ecore_wl_cursor_get(input->cursor_name)))
|
if (!(cursor = ecore_wl_cursor_get(input->cursor_name)))
|
||||||
|
|
Loading…
Reference in New Issue