Skip to content

Fix Windows titlebar control overlap - #4

Merged
awtprod merged 1 commit into
mainfrom
agent/fix-windows-titlebar-controls
Jul 31, 2026
Merged

Fix Windows titlebar control overlap#4
awtprod merged 1 commit into
mainfrom
agent/fix-windows-titlebar-controls

Conversation

@awtprod

@awtprod awtprod commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • Reserve the Windows caption-button area when Electron does not expose live Window Controls Overlay geometry.
  • Keep app-owned titlebar actions, including the right-panel toggle, clear of minimize, maximize, and close.
  • Preserve the existing exact geometry path whenever WCO is available.

Root cause

When the Window Controls Overlay API was unavailable, the renderer fell back to a 12px right inset even though Electron still displayed native Windows caption buttons. The right-panel toggle therefore occupied the native close-button hit area.

Impact

The desktop close button remains reachable, while the right-panel control stays visible and functional.

Validation

  • vp fmt --check apps/web/src/index.css
  • git diff --check
  • Isolated integrated UI verification at 1400×900: the actual right-panel toggle ended at x=1244 and the simulated native caption area began at x=1262, leaving a 12px gap.
  • Clicked the right-panel toggle and confirmed it changed from closed to pressed and rendered the surface chooser.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XS labels Jul 23, 2026
@awtprod
awtprod marked this pull request as ready for review July 23, 2026 00:42
@awtprod
awtprod merged commit 775dfa1 into main Jul 31, 2026
11 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants