# Fix crash when closing a window while in full-screen mode · gitcafe/zed

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

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

Visibility: public

Requested revision: 06f9516d3127a4540347255568afa82fe8a22bb3

Requested commit: 06f9516d3127a4540347255568afa82fe8a22bb3

Commit: 06f9516d3127a4540347255568afa82fe8a22bb3

Tree: e7fe593aeb3c84193e2e2542771d36003301ee4a

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Fix crash when closing a window while in full-screen mode

This commit delays closing the native window to the next tick to
avoid borrowing either `WindowState` or `MutableAppContext` twice.

```

## Parents

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

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