-
Notifications
You must be signed in to change notification settings - Fork 1
Add selectable monitor support, #25 #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Addresses user feedback for improved multi-monitor compatibility, especially for setups with mixed display types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds selectable monitor support to address multi-monitor compatibility issues. Users can now enable/disable the mouse mover feature per monitor through a new "Screens" submenu in the system tray.
- Introduces monitor detection and management via Windows API
- Adds UI controls for per-monitor enable/disable toggles
- Persists monitor preferences in settings
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| src/view.rs | Adds "Screens" submenu with dynamic menu items for each monitor, handles monitor selection events |
| src/settings.rs | Adds enabled_monitors HashMap to settings struct with getter/setter methods for monitor state |
| src/mover.rs | Implements monitor filtering logic to skip windows on disabled monitors |
| src/monitor_info.rs | New module providing Windows API helpers to enumerate monitors and retrieve display device information |
| src/main.rs | Registers the new monitor_info module |
| src/controller.rs | Adds global ENABLED_MONITORS state and methods to merge connected/saved monitor data |
| Cargo.toml | Adds required winapi features for monitor enumeration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Addresses user feedback for improved multi-monitor compatibility, especially for setups with mixed display types