summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-03-13 14:52:58 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-03-13 15:03:45 -0400
commit426382bc8bf94f322a8cf89bf371666ba268cd40 (patch)
tree79de258c086cd3b8c8eab9d0177f1925c0deda5b /src/lib/ecore_wayland
parent8927a33f64f60b6dd8dc6bff01ffeaf6cb839260 (diff)
ecore-wl dnd target interface should accept a NULL mime_type
according to protocol, this indicates that the target does not support the drop type
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_dnd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_dnd.c b/src/lib/ecore_wayland/ecore_wl_dnd.c
index 11b889a..b48cc13 100644
--- a/src/lib/ecore_wayland/ecore_wl_dnd.c
+++ b/src/lib/ecore_wayland/ecore_wl_dnd.c
@@ -737,7 +737,8 @@ _ecore_wl_dnd_source_cb_target(void *data, struct wl_data_source *source EINA_UN
737 737
738 if (!(event = calloc(1, sizeof(Ecore_Wl_Event_Data_Source_Target)))) return; 738 if (!(event = calloc(1, sizeof(Ecore_Wl_Event_Data_Source_Target)))) return;
739 739
740 event->type = strdup(mime_type); 740 if (mime_type)
741 event->type = strdup(mime_type);
741 742
742 ecore_event_add(ECORE_WL_EVENT_DATA_SOURCE_TARGET, event, 743 ecore_event_add(ECORE_WL_EVENT_DATA_SOURCE_TARGET, event,
743 _ecore_wl_dnd_source_cb_target_free, NULL); 744 _ecore_wl_dnd_source_cb_target_free, NULL);