ELM_WIN_DATA_GET(data, sd);
Ecore_Wl_Event_Aux_Message *ev = event;
Elm_Win_Aux_Message *msg = NULL;
- char *opt = NULL;
+ const char *opt = NULL, *tmp = NULL;
+ Eina_List *l;
if (!sd->wl.win) return ECORE_CALLBACK_PASS_ON;
msg->key = eina_stringshare_add(ev->key);
msg->val = eina_stringshare_add(ev->val);
- msg->options = eina_list_clone(ev->options);
+
+ EINA_LIST_FOREACH(ev->options, l, opt)
+ {
+ if (!opt) continue;
+ tmp = eina_stringshare_add(opt);
+ msg->options = eina_list_append(msg->options, tmp);
+ }
evas_object_smart_callback_call(sd->obj, SIG_AUX_MESSAGE_RECEIVED, (void*)msg);