Skip to content

fix(macos): clamp oversized initial window size - #1259

Open
justjavac wants to merge 1 commit into
tauri-apps:devfrom
justjavac:fix/macos-oversized-initial-window-size
Open

justjavac wants to merge 1 commit into
tauri-apps:devfrom
justjavac:fix/macos-oversized-initial-window-size

Conversation

@justjavac

@justjavac justjavac commented Jul 6, 2026 •

Copy link
Copy Markdown

What changed

Clamp oversized macOS initial inner window dimensions before constructing the native NSWindow.

Refs tauri-apps/tauri#15648.
Follow-up for tauri-apps/tauri#15649.

Validation

  • cargo fmt --check (passes; prints existing imports_granularity nightly warnings)
  • cargo test initial_inner_size --lib
  • cargo test --lib
  • cargo check (passes with existing warnings)
  • git diff --check

Tauri-side reproduction before moving this upstream: setting the helloworld example width to 2147483648 aborted during macOS did_finish_launching; applying the same clamp before native window creation allowed the app to enter the event loop.

@justjavac
justjavac force-pushed the fix/macos-oversized-initial-window-size branch from 2f521ab to 73aeffc Compare July 6, 2026 15:13
@Legend-Master Legend-Master added the ai-slop Low effort content, see https://github.com/tauri-apps/tauri?tab=contributing-ov-file#ai-tool-policy label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-slop Low effort content, see https://github.com/tauri-apps/tauri?tab=contributing-ov-file#ai-tool-policy platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants