Integrated: 8325591: [Mac] DRAG_DONE reports null transferMode when destination is external

Martin Fox mfox at openjdk.org
Wed May 1 14:07:57 UTC 2024


On Fri, 16 Feb 2024 22:35:49 GMT, Martin Fox <mfox at openjdk.org> wrote:

> At the end of a drag operation the Mac Glass code sends out a DRAG_DONE event using the operation mask tracked in the GlassDragSource to determine the final transfer mode. That mask is only updated when a window in the JavaFX app is the drop destination. If the drag moves to an external destination the mask is set to NONE. If the drag terminates in the external destination that NONE forms the basis of the transfer mode sent via the DRAG_DONE event.
> 
> At the very end of the drag the OS calls the NSDraggingSource (GlassDraggingSource) with the final drag operation. This PR issues the DRAG_DONE from that callback so it can get the final transfer mode correct for both internal and external destinations.

This pull request has now been integrated.

Changeset: aa9907a5
Author:    Martin Fox <mfox at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/aa9907a58e24bc997a6762d62542a9cc6234dbe3
Stats:     253 lines in 6 files changed: 245 ins; 1 del; 7 mod

8325591: [Mac] DRAG_DONE reports null transferMode when destination is external

Reviewed-by: lkostyra, kcr

-------------

PR: https://git.openjdk.org/jfx/pull/1371


More information about the openjfx-dev mailing list