fix transition between screens of different sizes on macos. #227
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When screens on macos have different physical sizes, macos will only allow the mouse to move between the screens where it thinks they overlap
![image](https://private-user-images.githubusercontent.com/48253/413160904-77fa841a-e37f-4e49-8769-470a302fadf8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTM3NjgsIm5iZiI6MTczOTYxMzQ2OCwicGF0aCI6Ii80ODI1My80MTMxNjA5MDQtNzdmYTg0MWEtZTM3Zi00ZTQ5LTg3NjktNDcwYTMwMmZhZGY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDA5NTc0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVlYWI0YjVlNDM4OWMxZjM0ODdhNzAwZjYzYzk5NDM2ZmQ5ZmQzZmNkZDJlMWUyOGY3YWJhNTIxOTYyYTdjMDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ZUSxzrXH7EHlUZlBFI-QbX_9VLwZnYJ79t_kuie7bx8)
This change bumps the cursor to the vertical middle of the edge of the screen before using relative movement to bump it onto the next display, making it much more likely that the cursor will be able to cross. The jump is sometimes noticeable, but it is pretty quick.
Should this be configurable?