forked from enlightenment/efl
ecore_wl2: only destroy source when not needed anymore.
Otherwise we are destroying the source before getting dnd_finished or cancled events, which is a problem.
This commit is contained in:
parent
c300678391
commit
63e88bdcfa
|
@ -595,9 +595,6 @@ ecore_wl2_dnd_drag_end(Ecore_Wl2_Input *input)
|
|||
wl_array_init(&input->data.types);
|
||||
}
|
||||
|
||||
if (input->data.source) wl_data_source_destroy(input->data.source);
|
||||
input->data.source = NULL;
|
||||
|
||||
ev = calloc(1, sizeof(Ecore_Wl2_Event_Dnd_End));
|
||||
if (!ev) return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue