jfx icon indicating copy to clipboard operation
jfx copied to clipboard

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

Open beldenfox opened this issue 1 year ago • 4 comments
trafficstars

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.


Progress

  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue
  • [ ] Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8325591: [Mac] DRAG_DONE reports null transferMode when destination is external (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1371/head:pull/1371
$ git checkout pull/1371

Update a local copy of the PR:
$ git checkout pull/1371
$ git pull https://git.openjdk.org/jfx.git pull/1371/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1371

View PR using the GUI difftool:
$ git pr show -t 1371

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1371.diff

Webrev

Link to Webrev Comment

beldenfox avatar Feb 16 '24 22:02 beldenfox

:wave: Welcome back mfox! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

bridgekeeper[bot] avatar Feb 16 '24 22:02 bridgekeeper[bot]

Webrevs

mlbridge[bot] avatar Feb 16 '24 22:02 mlbridge[bot]

/reviewers 2

kevinrushforth avatar Feb 17 '24 14:02 kevinrushforth

@kevinrushforth The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

openjdk[bot] avatar Feb 17 '24 14:02 openjdk[bot]

@beldenfox This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

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

Reviewed-by: lkostyra, kcr

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 1 new commit pushed to the master branch:

  • cac81b52fdeca763f3da21523c1582af3407aaf3: 8331319: IME Window breaks after popup menu

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch. As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

openjdk[bot] avatar Mar 13 '24 20:03 openjdk[bot]

Reviewers: @kevinrushforth @lukostyra

kevinrushforth avatar Mar 26 '24 18:03 kevinrushforth

@beldenfox This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Apr 25 '24 20:04 bridgekeeper[bot]

@lukostyra Can you please re-review?

kevinrushforth avatar Apr 30 '24 20:04 kevinrushforth

/integrate

beldenfox avatar May 01 '24 14:05 beldenfox

Going to push as commit aa9907a58e24bc997a6762d62542a9cc6234dbe3. Since your change was applied there has been 1 commit pushed to the master branch:

  • cac81b52fdeca763f3da21523c1582af3407aaf3: 8331319: IME Window breaks after popup menu

Your commit was automatically rebased without conflicts.

openjdk[bot] avatar May 01 '24 14:05 openjdk[bot]

@beldenfox Pushed as commit aa9907a58e24bc997a6762d62542a9cc6234dbe3.

:bulb: You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

openjdk[bot] avatar May 01 '24 14:05 openjdk[bot]