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
70d03e4841apricotbucket28 committed on 4/26/2024, 8:53:49 PM· committed by GitHubparentb1eb029
2 files changedLine totals unavailable