# Fix positioning of windows on secondary displays · gitcafe/zed

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

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

Visibility: public

Requested revision: 00e46fdde09ea9a88a89da5fd05a83a85f84375a

Requested commit: 00e46fdde09ea9a88a89da5fd05a83a85f84375a

Commit: 00e46fdde09ea9a88a89da5fd05a83a85f84375a

Tree: d0c17d37764e14f78fbe3f836ed619005566ba9b

Author: Conrad Irwin

Committer: Conrad Irwin

## Message

```
Fix positioning of windows on secondary displays

CGDisplayBounds returns data in "global display coordinates" (which are
the same as Zed's coordinates), different from the NS APIs which use
"screen coordinates" (which have the Y axis inverted)

Also remove some transmutes while we're at it

```

## Parents

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

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