summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland/ecore_wl_dnd.c
diff options
context:
space:
mode:
authorMinJeong Kim <minjjj.kim@samsung.com>2014-07-09 09:06:58 -0400
committerChris Michael <cp.michael@samsung.com>2014-07-09 09:06:58 -0400
commit61847abae13e4ae30c3351330b580402209de228 (patch)
treea4a19b4b9f64849f9eed486eb4f00777889d2d1e /src/lib/ecore_wayland/ecore_wl_dnd.c
parent8f14930d68114adc6b03ef3c698dd4a8910477f9 (diff)
ecore-wayland: Do not destroy data_source for selection on client side
Summary: Wayland client doesn't need to destroy previous data_source when client requests for selection_set, because there is "cancelled" event by wayland server to notify clients that the data_source is not used more and has to be destroyed. Before receiving the "cancelled" event, client cannot recognize that it is useless or not. Even if the client wants to create new data_source, wayland server can choose previous data_source rather than new one. Test Plan: 1. Launch weston 2. Launch "elementary_test -to entry5" on weston 3. Try to copy & paste Reviewers: devilhorns CC: cedric, gwanglim Differential Revision: https://phab.enlightenment.org/D1152
Diffstat (limited to 'src/lib/ecore_wayland/ecore_wl_dnd.c')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_dnd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_dnd.c b/src/lib/ecore_wayland/ecore_wl_dnd.c
index 1b249b465a..875cf5daf8 100644
--- a/src/lib/ecore_wayland/ecore_wl_dnd.c
+++ b/src/lib/ecore_wayland/ecore_wl_dnd.c
@@ -127,8 +127,6 @@ ecore_wl_dnd_selection_set(Ecore_Wl_Input *input, const char **types_offered)
127 wl_array_init(&input->data_types); 127 wl_array_init(&input->data_types);
128 } 128 }
129 129
130 /* destroy any existing data source */
131 if (input->data_source) wl_data_source_destroy(input->data_source);
132 input->data_source = NULL; 130 input->data_source = NULL;
133 131
134 if (!types_offered[0]) return EINA_FALSE; 132 if (!types_offered[0]) return EINA_FALSE;