Skip to content

fix(mac): keep monitoring alive in background#5

Merged
jx-grxf merged 1 commit intomainfrom
fix/background-menu-monitoring
Apr 17, 2026
Merged

fix(mac): keep monitoring alive in background#5
jx-grxf merged 1 commit intomainfrom
fix/background-menu-monitoring

Conversation

@jx-grxf
Copy link
Copy Markdown
Owner

@jx-grxf jx-grxf commented Apr 17, 2026

Summary

  • Moves Apple SPU HID report delivery from the main run loop to a dedicated dispatch queue.
  • Keeps a monitoring activity active while listening so macOS does not throttle the sensor loop in the background.
  • Prevents the app from terminating when the last window is closed, so the red close button hides the window while the menu bar app keeps running.

Fixed

The slap detector was coupled too tightly to foreground window/app lifecycle. Closing or backgrounding the window could stop practical monitoring behavior. The sensor backend now lives independently from the window, and the menu bar app stays alive.

Validation

  • swift build passed.

@jx-grxf jx-grxf merged commit 88ed690 into main Apr 17, 2026
1 check passed
@jx-grxf jx-grxf deleted the fix/background-menu-monitoring branch April 17, 2026 07:18
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