# gpui: Restore file drags when re-entering the source window on macOS \(\#61940\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/a8491e63b54bf1881e10fe78bb3e7b1f8a5a2cac)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: a8491e63b54bf1881e10fe78bb3e7b1f8a5a2cac

Requested commit: a8491e63b54bf1881e10fe78bb3e7b1f8a5a2cac

Commit: a8491e63b54bf1881e10fe78bb3e7b1f8a5a2cac

Tree: b9d5d333dd43d6b72d46486c3f7fe2e4873f8af8

Author: Smit Barmase

Committer: GitHub

## Message

```
gpui: Restore file drags when re-entering the source window on macOS (#61940)

Follow-up to #58161, which handed file drags to AppKit once the pointer
left the window but left the handoff one-way. Re-entering the source
window and dropping was not possible.

GPUI now suspends the original drag when handing it to the platform and
restores it when the drag re-enters the source window, so drop targets
receive the original typed payload instead of the synthetic
external-paths payload.

No release notes this hasn't shipped yet.

Release Notes:

- N/A
```

## Parents

- [933c85b13442e42530ae2632530a7f148866ca1f](https://git.cafe/gitcafe/zed/commit/933c85b13442e42530ae2632530a7f148866ca1f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/a8491e63b54bf1881e10fe78bb3e7b1f8a5a2cac?format=markdown)
