Closed mzivic7 closed 2 months ago
Closes #2799
So SDL has fixed it, but only for SDL3. Great research and effort @mzivic7!
I just asked on your issue there whether they think it's worth back-porting to SDL2. If they do back-port, I say we let them handle this hack instead of putting it into our own code.
If they don't want to back-port, we'll have to think further about how much we care about this. One thing for sure though, if we put this into our code I want comments in the codebase explaining exactly why.
Update: the SDL devs have backported the fix to SDL2
Thanks @mzivic7 for reporting the issue upstream and suggesting the fix. Now to get this fix on our side we just gotta bump SDL when they release the next release.
Great, I will close this pr and issue, since this is no longer related to pygame-ce code.
I found the reason why mouse.set_pos() is not working under wayland (xwyland), in one of blender bug reports:
I tried this:
and it worked!
So, I just added
PG_HideCursor();
before andPG_ShowCursor();
after this line.