Open gnattu opened 2 years ago
This should probably be reported upstream to SDL. Are you able to reproduce the issue with any of the SDL test apps?
Does this happen when a macOS toast is displayed? Those force-show the mouse cursor in plenty of apps for me.
Reproduce steps:
Describe the bug When set the mouse cursor to remote desktop mouse mode, the client cursor will very occasionally appear above the server cursor, just like when you toggled
ctrl+alt+shift+c
, but when this is the case, you have to inputctrl+alt+shift+c
twice to hide the cursor again.Steps to reproduce It is very hard to reproduce this and I have not find any reliable way to reproduce this, sorry. I can only tell that randomly moving the cursor on the screen will trigger this bug by chance.
Screenshots It is hard to take screenshots for the double cursor, but it looks exactly the same when you toggled
ctrl+alt+shift+c
Affected games Desktop
Other Moonlight clients Only tested macOS so far.
Moonlight settings (please complete the following information) Just check optimize mouse for remote desktop instead of games
Client PC details (please complete the following information)
Server PC details (please complete the following information)
Moonlight Logs (please attach)
The rest just spamming with data shards recovery
Additional context
I suspect this is an upstream SDL bug because I tried to force an
SDL_Event
to be pushed on each cursor position change andSDL_ShowCursor(SDL_DISABLE);
triggered by those events will not hide the cursor again, but if I doIn a sequence in the event handler, I have not see such weird behaviors for hours of use now.
So for now my workaround to this tricky bug:
The workaround above is dirty and breaks persistent client cursor mode, so may I ask is there any cleaner workarounds we can use ? I don't really want to compile from source for each release but current workaround is clearly not mergeable.