diff options
author | Taehyub Kim <taehyub.kim@samsung.com> | 2020-05-18 07:56:08 +0000 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2020-05-25 11:16:41 +0200 |
commit | 0b96e63f8292eef56bade6a9284892b6386a3570 (patch) | |
tree | 04d608ba0095243af51b6f812191e1285d2ac120 | |
parent | 9f7c518a20cf9d9a45b665a2d9fe2dceb373fa7d (diff) | |
download | efl-0b96e63f8292eef56bade6a9284892b6386a3570.tar.gz |
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
-rw-r--r-- | src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index 9c079d9868..c52022b333 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -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; |