e_dnd: Add e_drag_end to makes drag end 20/296420/1
authorJunseok Kim <juns.kim@samsung.com>
Wed, 12 Jul 2023 05:48:30 +0000 (14:48 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 27 Jul 2023 07:15:32 +0000 (16:15 +0900)
Change-Id: Icafb06a596f73ddbda6787be787ee1946705c989

src/bin/e_dnd.c
src/bin/e_dnd.h

index bac79b6..2db95fd 100644 (file)
@@ -158,6 +158,13 @@ e_drag_start(E_Drag *drag, int x, int y)
    return _e_drag_finalize(drag, x, y);
 }
 
+EINTERN void
+e_drag_end(E_Drag *drag)
+{
+   if (!drag) return;
+   _e_drag_end(drag);
+}
+
 /* local subsystem functions */
 static void
 _e_drag_end(E_Drag *drag)
index c47bfd5..127b1e9 100644 (file)
@@ -42,6 +42,7 @@ EINTERN void            e_drag_resize(E_Drag *drag, int w, int h);
 
 /* x and y are the coords where the mouse is when dragging starts */
 EINTERN int             e_drag_start(E_Drag *drag, int x, int y);
+EINTERN void            e_drag_end(E_Drag *drag);
 
 #endif
 #endif