# Clean up and refactor X11 refresh loop \(alternative\) \(\#8655\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 26103e8bb9f1792e203f365cf4c4efccf887cce3

Requested commit: 26103e8bb9f1792e203f365cf4c4efccf887cce3

Commit: 26103e8bb9f1792e203f365cf4c4efccf887cce3

Tree: d917a2a727593645e913fe31ffd26b8ca84da1c9

Author: Dzmitry Malyshau

Committer: GitHub

## Message

```
Clean up and refactor X11 refresh loop (alternative) (#8655)

Associates every window with its own refresh event. Removes the use of
X11 present.
Alternative to #8592.
Instead of doing the rendering on idle and then involving a hack for
polling X11 events, this PR just tries to do the rendering inside the
main loop. This guarantees that we continue to poll for events after the
draw, and not get screwed by the driver talking to X11 via the same file
descriptor.

Release Notes:
- N/A
```

## Parents

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

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