e_comp_wl_data: End the drag when the wl_data_source destroyed 68/303168/1
authorJunseok Kim <juns.kim@samsung.com>
Tue, 19 Dec 2023 07:22:55 +0000 (16:22 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 21 Dec 2023 02:33:35 +0000 (11:33 +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 a8a4cb6..20c0f7f 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;