Files
Mayank Verma 64ef8026c7 gpui: Resolve window placement from active window (#61459)
Closes #33314

### Objective

On multi-monitor setups, opening a new window placed it on the primary
display instead of the display I'm currently on.

### Solution

GPUI now retains the active window bounds and display ID while it is on
the update stack. New windows use this for placement, falling back to
the primary display when no active display is available.

### Testing

- Tested it on macOS 26

### Self-Review Checklist:

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

Release Notes:

- Fixed new windows always opening on the primary display
- [GPUI] Added `App::active_display`; `WindowBounds::centered` now takes
a `display_id`
2026-11-11 19:08:16 +00:00
..