# Fix positioning of windows on secondary displays \(\#4169\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ac350e9d5043b8d39a8156a5bea778bb2e2f4596

Requested commit: ac350e9d5043b8d39a8156a5bea778bb2e2f4596

Commit: ac350e9d5043b8d39a8156a5bea778bb2e2f4596

Tree: a5ebb3d860aa5cb4cb95bee5ff87d0d85cc2bc68

Author: Conrad Irwin

Committer: GitHub

## Message

```
Fix positioning of windows on secondary displays (#4169)

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

Release Notes:

- Fixed position of notifications on secondary displays
```

## Parents

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

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

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