From 6f017eb4c18ea53cbc2782df10e078f5b939e87c Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Fri, 16 Oct 2026 13:26:20 +0300 Subject: End every drag with one event A drag that dropped on no YASL surface, such as one dropped on the desktop or canceled, ended unheard: the public drag start set no end listener. An application then waited for the drag's end forever. The public layer now listens for the end. When no surface got the drop, the origin gets DRAG with the new action YASL_DROP_CANCEL. Co-Authored-By: Claude Opus 5.5 --- src/common/types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/types.h') diff --git a/src/common/types.h b/src/common/types.h index 67aaaa3..034e6fd 100644 --- a/src/common/types.h +++ b/src/common/types.h @@ -231,6 +231,7 @@ enum yasl_private_drag_event { YASL_PRIVATE_DRAG_OVER, /**< Surface drag entered or moved over the target. */ YASL_PRIVATE_DRAG_LEAVE, /**< Surface drag left the target. */ YASL_PRIVATE_DRAG_DROP, /**< Surface drag dropped on the target. */ + YASL_PRIVATE_DRAG_CANCEL, /**< Surface drag ended on no target; sent to its origin. */ }; /** External text/file drag hover notifications; completed data arrives through input. */ -- cgit v1.2.3