Skip to content

Fix readme spelling and grammar. #173

Merged
treeform merged 2 commits intomasterfrom
andre_build_test
Apr 3, 2026
Merged

Fix readme spelling and grammar. #173
treeform merged 2 commits intomasterfrom
andre_build_test

Conversation

@treeform
Copy link
Copy Markdown
Owner

@treeform treeform commented Apr 3, 2026

No description provided.

@treeform treeform merged commit d3a45c3 into master Apr 3, 2026
3 checks passed
nishu-builder pushed a commit to Metta-AI/mettagrid that referenced this pull request Apr 9, 2026
## Summary

- Updates the windy nimby lock hash from `d87b6ad` to `45f58a2` (latest master)

## What changed in windy

The new windy includes [treeform/windy#174](treeform/windy#174) which fixes an intermittent bug where the mettascope window would not come to the front on macOS startup.

**Root cause:** `setActivationPolicy(NSApplicationActivationPolicyRegular)` was called inside the `applicationDidFinishLaunching` callback and then immediately tried to activate the app. This policy change tells the macOS window server (a separate process) to promote the app from a background process to a regular GUI app, but the window server processes this asynchronously via IPC. Sometimes the promotion completed before the activation request arrived (window comes to front), sometimes it didn't (window stays behind other apps).

**Fix:** Moved `setActivationPolicy` to before `finishLaunching()` in `init()`, giving the window server more time to process the policy change before any window is created or activation is attempted. This is the same approach used by GLFW and SDL.

Also includes:

- [treeform/windy#172](treeform/windy#172): Unify `pollHttp` behavior across platforms
- [treeform/windy#173](treeform/windy#173): Fix readme spelling and grammar

## Test plan

- [x] Launch mettascope repeatedly on macOS and verify the window consistently comes to front

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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.

1 participant