# Query for window instead of capturing \(\#55059\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 562a0e03b5c3c6e696154de92fd56302a41683c4

Requested commit: 562a0e03b5c3c6e696154de92fd56302a41683c4

Commit: 562a0e03b5c3c6e696154de92fd56302a41683c4

Tree: 5bb0fc1e84b98258cf9a8c07a8f7b3c15115fe1a

Author: Mikayla Maki

Committer: GitHub

## Message

```
Query for window instead of capturing (#55059)

This allows us to move entities between windows without breaking all the
callbacks.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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