Skip to content

fix(desktop-gpui): place windows correctly on displays above or below the primary - #2811

Merged
richiemcilroy merged 2 commits into
CapSoftware:mainfrom
flyingwebie:fix/gpui-multi-display-placement
Oct 22, 2026
Merged

richiemcilroy merged 2 commits into
CapSoftware:mainfrom
flyingwebie:fix/gpui-multi-display-placement

Conversation

@flyingwebie

@flyingwebie flyingwebie commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Split out of #2774 as requested in review.

GPUI's macOS visible_bounds is relative to its own display, but global_macos_work_area in app_windows.rs treated its y as AppKit-global. On a display stacked above or below the primary one, the recording controls were clamped off-screen. The work area now just carries the display's global origin across.

Testing

  • cargo test --bin cap-gpui macos_work_area in apps/desktop-gpui: passes, with a new case for a display above and to the right of the primary (1691, -1080).

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.

Summary

Fixes macOS window placement by adding the display’s global origin to its local work area.

  • Mac windows now land in the right place on stacked displays.

Reviews (1) · Last reviewed commit: "🐛 fix(desktop-gpui): place windows corr..." · Reviewed by Greptile

…ow the primary

GPUI's macOS visible_bounds is relative to its own display, but the work area
conversion treated its y as AppKit-global. On a display stacked above or below
the primary one the recording controls were clamped off-screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

@flyingwebie is attempting to deploy a commit to the Cap Software Inc Team on Vercel.

A member of the Team first needs to authorize it.

@richiemcilroy

Copy link
Copy Markdown
Member

@greptileai review

@richiemcilroy
richiemcilroy merged commit c3f0a92 into CapSoftware:main Oct 22, 2026
45 of 51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants