diff options
Diffstat (limited to 'src/lib/ecore_wayland/ecore_wl_dnd.c')
-rw-r--r-- | src/lib/ecore_wayland/ecore_wl_dnd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_dnd.c b/src/lib/ecore_wayland/ecore_wl_dnd.c index 51653283a0..82a3a1673b 100644 --- a/src/lib/ecore_wayland/ecore_wl_dnd.c +++ b/src/lib/ecore_wayland/ecore_wl_dnd.c @@ -176,6 +176,7 @@ ecore_wl_dnd_selection_get(Ecore_Wl_Input *input, const char *type) if (!*t) return EINA_FALSE; + input->selection_source->selection = ECORE_WL_SELECTION_CNP; _ecore_wl_dnd_selection_data_receive(input->selection_source, type); return EINA_TRUE; @@ -331,6 +332,7 @@ ecore_wl_dnd_drag_get(Ecore_Wl_Input *input, const char *type) if (!*t) return EINA_FALSE; + input->drag_source->selection = ECORE_WL_SELECTION_DND; _ecore_wl_dnd_selection_data_receive(input->drag_source, type); return EINA_TRUE; @@ -659,6 +661,7 @@ _ecore_wl_dnd_selection_data_read(void *data, Ecore_Fd_Handler *fd_handler EINA_ if (!(event = calloc(1, sizeof(Ecore_Wl_Event_Selection_Data_Ready)))) return ECORE_CALLBACK_CANCEL; + event->selection = source->selection; if (len <= 0) { close(source->fd); |