# gpui: Allow DisplayId to be compared to u32 \(\#27895\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 90f30b5c200d56d3c3a5c601386ccb28964cb888

Requested commit: 90f30b5c200d56d3c3a5c601386ccb28964cb888

Commit: 90f30b5c200d56d3c3a5c601386ccb28964cb888

Tree: 67a6321f4cea27142933d8130fb1c0f8b1631d55

Author: Terminal

Committer: GitHub

## Message

```
gpui: Allow DisplayId to be compared to u32 (#27895)

allow DisplayId to be compared to u32. This is handy since gpui doesn't
provide a method to detect current active display of the user. So when
using mouse location to get the active display we need to then compare
that display u32 to DisplayID

Release Notes:
- added From to allow u32 comparison
```

## Parents

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

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