Skip to content

fix: refresh macOS display bounds on hotplug - #487

Open
grazzolini wants to merge 1 commit into
feschber:mainfrom
grazzolini:fix/macos-monitor-hotplug
Open

fix: refresh macOS display bounds on hotplug#487
grazzolini wants to merge 1 commit into
feschber:mainfrom
grazzolini:fix/macos-monitor-hotplug

Conversation

@grazzolini

@grazzolini grazzolini commented Aug 28, 2026

Copy link
Copy Markdown

Summary

  • Recompute macOS capture bounds from the current active-display union after monitor changes.
  • Refresh bounds during pointer motion when Quartz callbacks are missed or arrive before topology settles.
  • Reanchor an active capture to the updated edge while preserving and clamping the cross-axis position.

Testing

  • cargo fmt --check
  • cargo test -p input-capture
  • cargo clippy -p input-capture --all-targets
  • Manually switched the left external display from macOS to Linux and crossed from the new macOS left edge without restarting Lan Mouse.

@grazzolini

Copy link
Copy Markdown
Author

I have been using this patch for a couple of months and it works. This has been tested with 3 monitors and many combinations among them, including changing the geometry a lot.

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