Update onMouseMoveSecondary to allow offset adjustments#7511
Update onMouseMoveSecondary to allow offset adjustments#7511nbolton merged 1 commit intodeskflow:masterfrom
Conversation
|
@spurin Oh! Edit: I'll get to the bottom of why the Windows runner is failing at the deps step. Quite certain that it's a cache issue totally unrelated to your PR. |
|
Regarding the setting of 2x that I'm using, the mouse speed is perfect and consistent now. I wonder on the explanation for this. I have 2 x 4K screens, 3840x2160 Mac Retina is a 1080p "like" resolution on a 4K screen, providing that retina sharpness and crispness by pixel doubling. My windows desktop is 4K, albeit with a percentage zoom in. I believe that the retina aspect on mac may be treating the pixel count as a 1080p screen, when we switch to windows, the pixel count is double, hence the slow down of the mouse movement. Coincidently, when I tried Share Mouse, I also needed to move the bar to 200% to get the equivalent result. Mentioning this as retina mode is standard on Mac OS and it may be worthwhile thinking about this from a UI/settings implementation. |
|
As the user, I can recommend rounding fractional numbers to the |
|
Thanks for the heads up, interesting name. I like it! |
|
Would it be possible to make this part of the client/server config ? |
I think so. Env var is good for developer testing, but for regular users, config would be easier. @sithlord48 Edit: In the interest of moving forward, maybe we should do the |
5790c00 to
3389213
Compare
|
@spurin Would you like us to fix the SonarCloud-idenfied smells or would you prefer we do it? |
|
@nbolton I'm more than happy for yourself or anybody to take this on and use/re-use/update the code as required to make it useful for the task in hand. For context, I treated this as a functional prototype and for my own personal needs at present it suits me well. Whilst I'd rather have the slick features of Synergy 3, the mouse aspect is currently more important at present (am doing a lot of design/creative work between mac and windows). So I'm happy to live with this workaround until it takes a better form in the future. You steer your own ship much better than I, appreciate the ask. In this case please do as you see fit with it 👍 |
3389213 to
4c28d23
Compare
@spurin No problem, I'll take a look at getting these issues fixed soon so we can merge this in. I appreciate the time you've spent so far and thanks for sharing your solution with us.
@sithlord48 What did you think about doing the config improvements in a new PR? |
4c28d23 to
36ae9b4
Compare
7f7360e to
d6b2d2a
Compare
|
If we land this without making the config / gui changes we need to be sure this gets documented so we do not forget todo it . |
fb10f52 to
766eabb
Compare
766eabb to
2b721d1
Compare
|
@nbolton iirc we were testing our linting on this pr ? that is all im waiting for to land |
I believe there are 3 things we need to do before landing:
Edit: Actually, I think we can fix code smells on a different PR. |
2b721d1 to
a001c7c
Compare
0637796 to
433f36e
Compare
Code style applied. Edit: Download packages (available for limited time)
@neworld Do you think the current PR needs any more changes? @spurin Are you happy for this to be merged in its current state? |
1abc1e4 to
c001b4f
Compare
c001b4f to
21cda72
Compare
@spurin I changed the env var to |
|
Approved once @spurin confirms the name change was successful. |
@sithlord48 The change request is blocking the merge. Happy for me to dismiss your review, or would you prefer to re-approve? |

Fixes: #4245
Blocked by: #7522, #7569
We now have a working prototype where onMouseMoveSecondary can be adjusted via an environment variable at startup. This implementation is server-side and relates to the issue discussed at #4245 (credit to @neworld for their initial implementation).
To double the mouse speed, use the following on the server side:
This results in consistent mouse speed across my Mac OS X server and HiDPI Windows client, achieving the desired functional outcome.
To reduce the speed, you can modify the value like so:
In the future, this could ideally be managed through the UI, with the ability to apply different speed adjustments for specific targets, rather than having a global setting. In my case, I only have two systems, so this works fine, but others may require more granular control.
Consider this a proof of concept for reference, rather than code intended for direct inclusion in the upstream codebase.
Edit: updated with final env var name