ecore_wl2: only destroy source when not needed anymore.
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Wed, 6 Jul 2016 12:54:53 +0000 (14:54 +0200)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Mon, 11 Jul 2016 09:02:52 +0000 (11:02 +0200)
Otherwise we are destroying the source before getting dnd_finished or
cancled events, which is a problem.

src/lib/ecore_wl2/ecore_wl2_dnd.c

index 2c63ff2..4b44b4a 100644 (file)
@@ -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;