Repository navigation
fix(desktop): sync window maximize state after fullscreen - #2561
Merged
Merged
Conversation
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.
Deploying pi-desktop with
|
| 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 |
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.
This was referenced Nov 24, 2026
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-maximizedmarker from leaving the caption no-drag after fullscreen.Validation
git diff --checkpassedCloses #2520 after merge and platform validation.