# x11: Implement various window functions \(\#12070\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d8605c86145e8c002a04bf92cc0173e47d925ba4

Requested commit: d8605c86145e8c002a04bf92cc0173e47d925ba4

Commit: d8605c86145e8c002a04bf92cc0173e47d925ba4

Tree: cb266c3f58fe8f279bb4c1d5ab0f256e59cf404f

Author: apricotbucket28

Committer: GitHub

## Message

```
x11: Implement various window functions (#12070)

This (mostly) allows the CSD added in
https://github.com/zed-industries/zed/pull/11525 to work in X11. It's
still a bit buggy as it detects a second window drag right after the
first one finishes, but it's probably better to change the way window
drags are detected in the title bar itself (as that causes other
issues).

The CSD can be tested by changing the return value of
`should_render_window_controls` to true.

Also fixes F11 crashing.

Release Notes:

- N/A
```

## Parents

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

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