Files
Chris Tate 1c1fba0c0f fix(macos): place fresh windows correctly (#369)
* fix(macos): place fresh windows correctly

- Separate restored, explicit, and default window placement from persistence policy.
- Honor explicit origins and restore policy across platform seams and both macOS hosts.
- Add placement coverage, update docs, and remove obsolete example workarounds.

* fix(macos): honor window placement policies

* fix(macos): correct window placement policies

* fix(macos): preserve window placement contracts

* fix(runtime): restore secondary window placement
2026-08-16 19:06:29 -05:00
..
2026-05-08 17:54:42 -05:00

WebView Example

A Native SDK app with inline HTML, a native bridge command (native.ping), and builtin window management commands.

Run

zig build run

With Chromium/CEF:

zig build run -Dweb-engine=chromium -Dcef-auto-install=true

With automation enabled (for testing):

zig build run -Dautomation=true

Using outside the repo

This example references the Native SDK via relative path (../../). To use it standalone, override the path:

zig build run -Dnative-sdk-path=/path/to/native-sdk

Or, when a published Zig package is available, replace default_native_sdk_path in build.zig with the package URL and add it to build.zig.zon dependencies.