# gpui: Allow repositioning macOS traffic lights at runtime \(\#58169\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 137eeea67be12540b91e41014339c91a63febcd1

Requested commit: 137eeea67be12540b91e41014339c91a63febcd1

Commit: 137eeea67be12540b91e41014339c91a63febcd1

Tree: a2d56c0b4108a63c26d41b2406f473f56088daf6

Author: Mayank Verma

Committer: GitHub

## Message

```
gpui: Allow repositioning macOS traffic lights at runtime (#58169)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A

Right now we can only set the traffic light position when creating a
window. This adds a public API so that we can update the position at
runtime, such as when titlebar height or layout changes dynamically.
```

## Parents

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

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