ev->source = input->focus.keyboard->id;
if (!ev->win) ev->win = ev->source;
- if (input->drag.source)
- ev->action = input->drag.source->dnd_action;
+
+ ev->action = input->data.action;
ecore_event_add(event, ev, NULL, NULL);
}
{
Ecore_Wl2_Input *input = data;
- if (input->drag.source)
- input->drag.source->dnd_action = 0;
if (input->data.source == source) input->data.source = NULL;
+ input->data.action = WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE;
wl_data_source_destroy(source);
data_source_event_emit(input, ECORE_WL2_EVENT_DATA_SOURCE_END);
}
{
Ecore_Wl2_Input *input = data;
- if (input->drag.source)
- input->drag.source->dnd_action = dnd_action;
+ input->data.action = dnd_action;
data_source_event_emit(input, ECORE_WL2_EVENT_DATA_SOURCE_ACTION);
}