summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaehyub Kim <taehyub.kim@samsung.com>2020-05-18 07:56:08 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-05-25 11:16:41 +0200
commit0b96e63f8292eef56bade6a9284892b6386a3570 (patch)
tree04d608ba0095243af51b6f812191e1285d2ac120
parent9f7c518a20cf9d9a45b665a2d9fe2dceb373fa7d (diff)
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.c3
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)
2881 ecore_event_handler_add(ECORE_WL2_EVENT_DND_DROP, 2881 ecore_event_handler_add(ECORE_WL2_EVENT_DND_DROP,
2882 _wl_selection_dnd_drop, ee); 2882 _wl_selection_dnd_drop, ee);
2883 wdata->dnd_end_handler = 2883 wdata->dnd_end_handler =
2884 ecore_event_handler_add(ECORE_WL2_EVENT_DATA_SOURCE_DROP, 2884 ecore_event_handler_add(ECORE_WL2_EVENT_DATA_SOURCE_END,
2885 _wl_selection_dnd_end, ee); 2885 _wl_selection_dnd_end, ee);
2886
2886 for (int i = 0; i < ECORE_EVAS_SELECTION_BUFFER_LAST; ++i) 2887 for (int i = 0; i < ECORE_EVAS_SELECTION_BUFFER_LAST; ++i)
2887 { 2888 {
2888 wdata->selection_data[i].callbacks.available_types = NULL; 2889 wdata->selection_data[i].callbacks.available_types = NULL;