e_comp_wl_data: End the drag when the wl_data_source destroyed 01/303301/1
authorJunseok Kim <juns.kim@samsung.com>
Tue, 19 Dec 2023 07:22:55 +0000 (16:22 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 25 Dec 2023 23:45:07 +0000 (08:45 +0900)
End the drag when the wl_data_source destroyed.
And Use e_comp_wl->drag to check the drag already doing.

Change-Id: Ic5f155549fd26a5c103662c855d3be305f225772

src/bin/e_comp_wl_data.c

index a8a4cb6593043f45d307c5f13b9858ccc4bf64a6..20c0f7f2e5229094dd4a54967bbd0cfc43ab8985 100644 (file)
@@ -501,6 +501,7 @@ _e_comp_wl_data_source_cb_resource_destroy(struct wl_resource *resource)
      {
         e_comp_wl->drag_source = NULL;
         e_comp_override_del();
+        e_drag_end(e_comp_wl->drag, E_DND_DRAG_TYPE_CANCELLED);
      }
 
    _mime_types_free(source);
@@ -917,7 +918,7 @@ _e_comp_wl_data_device_cb_drag_start(struct wl_client *client, struct wl_resourc
 
    DBG("Data Device Drag Start");
 
-   if (e_comp_wl->drag_source)
+   if (e_comp_wl->drag)
      {
         ERR("Drag already in progress");
         return;