# Fix issues where screen and window sizes contained Pixels, but were declared as DevicePixels \(\#12991\) · gitcafe/zed

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

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

Visibility: public

Requested revision: da281d6d8fda006d24c182bbc699c28edd85bbf3

Requested commit: da281d6d8fda006d24c182bbc699c28edd85bbf3

Commit: da281d6d8fda006d24c182bbc699c28edd85bbf3

Tree: 3e4e7370926270eea2ed0d742b9108d33687fae1

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Fix issues where screen and window sizes contained Pixels, but were declared as DevicePixels (#12991)

On most platforms, things were working correctly, but had the wrong
type. On X11, there were some problems with window and display size
calculations.

Release Notes:

- Fixed issues with window positioning on X11

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Mikayla <mikayla@zed.dev>
```

## Parents

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

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