Skip to content

fix(desktop): sync window maximize state after fullscreen - #2561

Merged
Tioit-Wang merged 8 commits into
mainfrom
fix/p1-macos-window
Nov 24, 2026
Merged

Tioit-Wang merged 8 commits into
mainfrom
fix/p1-macos-window

Conversation

@Tioit-Wang

Copy link
Copy Markdown
Collaborator

Summary

Continues #2523 on current main while preserving the contributor's original commit and the native macOS zoom/restore fix. Adds main-process maximize-state synchronization and re-reads the native maximize state after fullscreen enter/exit settles, preventing a stale renderer data-window-maximized marker from leaving the caption no-drag after fullscreen.

Validation

  • 25 targeted window/fullscreen tests passed
  • Desktop build, typecheck, lint, and git diff --check passed
  • PR-base ancestry verified
  • NOT RUN: native macOS window gesture E2E; this candidate was built on Windows and needs macOS runner validation

Closes #2520 after merge and platform validation.

Linuxdazhao and others added 3 commits November 23, 2026 10:58
Report native maximize and unmaximize transitions, then reconcile the renderer state after macOS fullscreen enter and exit settle. This keeps caption drag behavior aligned with the native window when AppKit changes maximize state without a separate event.

Retain the existing fullscreen broadcasts and resize guard while documenting and testing the transition ordering.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Deploying pi-desktop with  Cloudflare Pages  Cloudflare Pages

Latest commit: 744fd75
Status: ✅  Deploy successful!
Preview URL: https://9482eb9d.pi-desktop.pages.dev
Branch Preview URL: https://fix-p1-macos-window.pi-desktop.pages.dev

View logs

Trim the window-controls comment after extracting maximize state synchronization. This keeps the main-window bootstrap at or below its origin/main size without changing runtime behavior.
Update the window-menu source contract to follow the extracted maximize-state synchronizer. Keep the native unmaximize and fullscreen behavior assertions unchanged.
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.

[Bug] Mac端调整窗口大小及拖动窗口方式失效

2 participants