int fd;
} Ecore_Wl2_Event_Data_Source_Send;
+typedef enum
+{
+ ECORE_WL2_SELECTION_CNP,
+ ECORE_WL2_SELECTION_DND
+} Ecore_Wl2_Selection_Type;
+
typedef struct _Ecore_Wl2_Event_Selection_Data_Ready
{
char *data;
int len;
Eina_Bool done;
+ Ecore_Wl2_Selection_Type sel_type;
} Ecore_Wl2_Event_Selection_Data_Ready;
typedef enum
event = calloc(1, sizeof(Ecore_Wl2_Event_Selection_Data_Ready));
if (!event) return ECORE_CALLBACK_CANCEL;
+ event->sel_type = source->sel_type;
if (len <= 0)
{
if (source->input->drag.source)
if (!*t) return EINA_FALSE;
+ input->drag.source->sel_type = ECORE_WL2_SELECTION_DND;
_selection_data_receive(input->drag.source, type);
return EINA_TRUE;
if (!*t) return EINA_FALSE;
+ input->selection.source->sel_type = ECORE_WL2_SELECTION_CNP;
_selection_data_receive(input->selection.source, type);
return EINA_TRUE;