ecore_evas_wayland_common: keep the backword compatibility for wayland dnd handler

Keep the backword compatibility for wayland ECORE_WL2_EVENT_DATA_SOURCE_END event handler.
If we don't use this handler, the dnd is not ended when the drop item is dropped.
@fix

Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D11846
This commit is contained in:
Taehyub Kim 2020-05-18 07:56:08 +00:00 committed by Marcel Hollerbach
parent 9f7c518a20
commit 0b96e63f82
1 changed files with 2 additions and 1 deletions

View File

@ -2881,8 +2881,9 @@ _ecore_evas_wl_selection_init(Ecore_Evas *ee)
ecore_event_handler_add(ECORE_WL2_EVENT_DND_DROP,
_wl_selection_dnd_drop, ee);
wdata->dnd_end_handler =
ecore_event_handler_add(ECORE_WL2_EVENT_DATA_SOURCE_DROP,
ecore_event_handler_add(ECORE_WL2_EVENT_DATA_SOURCE_END,
_wl_selection_dnd_end, ee);
for (int i = 0; i < ECORE_EVAS_SELECTION_BUFFER_LAST; ++i)
{
wdata->selection_data[i].callbacks.available_types = NULL;