# Fix window double borrows \(\#23739\) · gitcafe/zed

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

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

Visibility: public

Requested revision: a7c549b85bcfe13deded952db645783d3da0c50d

Requested commit: a7c549b85bcfe13deded952db645783d3da0c50d

Commit: a7c549b85bcfe13deded952db645783d3da0c50d

Tree: 9bbfe21066ce9097721654c9c0435421983d6c45

Author: Mikayla Maki

Committer: GitHub

## Message

```
Fix window double borrows (#23739)

Fix bugs caused by the window context PR, where the window could be on
the stack and is then requested from the App.
This PR also adds derive macros for `AppContext` and `VisualContext` so
that it's easy to define further contexts in API code, such as
`editor::BlockContext`.

Release Notes:

- N/A
```

## Parents

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

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