Skip to content

fix(dev): restore Linux window size and full-screen mode - #1806

Merged
houko merged 1 commit into
mainfrom
fix/dev-linux-frame-658
Nov 22, 2026
Merged

houko merged 1 commit into
mainfrom
fix/dev-linux-frame-658

Conversation

@houko

@houko houko commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Reuse the native dev session file to restore the Linux main view’s last regular GTK size before layout. Before showing the new window, request its last confirmed full-screen mode. GTK keeps the regular size for when the window leaves full screen.

Listen for GTK’s fullscreened notification so changes accepted by the window manager or compositor reach the engine and the session file. X11 and Wayland continue to place the window through their existing window manager or compositor.

Part of #658. Linux X11 placement, secondary windows, navigation state and seamless or identity-preserving handoff remain tracked there.

Verification

  • TestDevWindowFrameRestoresSizeAndFullScreen passed on Linux arm64 with Xvfb and Openbox, and with headless Weston 14 on Wayland.
  • Both native runs verified the saved regular size at the first layout, the return to full screen, and the regular size after leaving it.
  • git diff --check passed.
  • Local Linux arm64 vet passed. Cross-target Build and vet passed after the local Docker daemon stopped during x64 vet.
  • The broader Linux Test job reported the existing TestMinimalAppLinks failures and the missing ImageSampling allowlist entry addressed in refactor(nsgotest): own web view configuration snapshots #1811.

@houko

houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Reviewed. Restoring before createWindow uses the saved size and notify::fullscreened fixes the property name. The writer goroutine coalesces states through a one-slot channel that is closed only after the loop returns, and the dev-only code stays behind the nsgodev tag.

@houko
houko enabled auto-merge (rebase) November 22, 2026 04:22
@houko
houko force-pushed the fix/dev-linux-frame-658 branch 3 times, most recently from 065479b to 113cc16 Compare November 22, 2026 08:17
@houko
houko added this pull request to the merge queue Nov 22, 2026
@houko
houko removed this pull request from the merge queue due to a manual request Nov 22, 2026
@github-actions github-actions Bot added the conflict Conflicts with the base branch; resolve it first label Nov 22, 2026
@houko
houko force-pushed the fix/dev-linux-frame-658 branch from 113cc16 to db60bbd Compare November 22, 2026 09:36
@houko
houko enabled auto-merge November 22, 2026 09:36
@houko
houko force-pushed the fix/dev-linux-frame-658 branch from db60bbd to 5778a1f Compare November 22, 2026 09:38
@houko
houko force-pushed the fix/dev-linux-frame-658 branch from 5778a1f to 35f7fd5 Compare November 22, 2026 23:42
@houko
houko merged commit dfd84c4 into main Nov 22, 2026
16 of 19 checks passed
@houko
houko deleted the fix/dev-linux-frame-658 branch November 22, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cli conflict Conflicts with the base branch; resolve it first documentation Improvements or additions to documentation Linux size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant