forked from enlightenment/efl
efl selection manager - fix dnd end handling to only handle on dnd
dnd end handling was being done even if no dnd started, like an ungrab. this caused side effects like stoping selections in their tracks. @fix
This commit is contained in:
parent
803fddea5d
commit
eab91edcb2
|
@ -2707,6 +2707,9 @@ _wl_dnd_end(void *data, int type EINA_UNUSED, void *event)
|
||||||
if (ev->serial != sel->drag_serial)
|
if (ev->serial != sel->drag_serial)
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_RENEW;
|
||||||
|
|
||||||
|
if (seat_sel->active_type != EFL_SELECTION_TYPE_DND)
|
||||||
|
return ECORE_CALLBACK_RENEW;
|
||||||
|
|
||||||
efl_event_callback_call(seat_sel->drag_obj, EFL_UI_DND_EVENT_DRAG_DONE, NULL);
|
efl_event_callback_call(seat_sel->drag_obj, EFL_UI_DND_EVENT_DRAG_DONE, NULL);
|
||||||
if (seat_sel->drag_win)
|
if (seat_sel->drag_win)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue