# x11: Fix window close \(\#11008\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 70d03e484135ef56d5f6a308bab3b70e5f468f82

Requested commit: 70d03e484135ef56d5f6a308bab3b70e5f468f82

Commit: 70d03e484135ef56d5f6a308bab3b70e5f468f82

Tree: cce940da4a29b696be8665d78dcf1807dabb0ed5

Author: apricotbucket28

Committer: GitHub

## Message

```
x11: Fix window close (#11008)

Fixes https://github.com/zed-industries/zed/issues/10483 on X11

Also calls the `should_close` callback before closing the window (needed
for the "Do you want to save?" dialog).

Release Notes:

- N/A
```

## Parents

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

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