summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-09-13 07:00:28 +0100
committerChris Michael <cp.michael@samsung.com>2013-09-13 07:01:06 +0100
commit0c88d8e8ceca665343d4ab03ea7ff9048edd7ad4 (patch)
treee0774b1438364ef61d4de8054fcc16c34f7035ef
parentc244dfe89ebf936f14f642c1ae090e3c5d6acb6b (diff)
Revert "Reduce additional call to eina_stringshare_replace."
This reverts commit f4f44c777ad410eaea152cc8745ca641ea2c2d5a.
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index 20f7381905..e458d714e6 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -240,11 +240,11 @@ ecore_wl_input_cursor_from_name_set(Ecore_Wl_Input *input, const char *cursor_na
240 240
241 _pointer_update_stop(input); 241 _pointer_update_stop(input);
242 242
243 eina_stringshare_replace(&input->cursor_name, cursor_name);
244
243 /* No cursor. Set to default Left Pointer */ 245 /* No cursor. Set to default Left Pointer */
244 if (!cursor_name) 246 if (!cursor_name)
245 eina_stringshare_replace(&input->cursor_name, "left_ptr"); 247 eina_stringshare_replace(&input->cursor_name, "left_ptr");
246 else
247 eina_stringshare_replace(&input->cursor_name, cursor_name);
248 248
249 /* try to get this cursor from the theme */ 249 /* try to get this cursor from the theme */
250 if (!(cursor = ecore_wl_cursor_get(input->cursor_name))) 250 if (!(cursor = ecore_wl_cursor_get(input->cursor_name)))