12 Sep
2022
12 Sep
'22
9:32 a.m.
I don't think this will work very well, there's several things that can happen if you do this: * X11 may override cursor grab without notifying the application, you will end up with the mouse free to move when the game and Wine still believe it's constrained. * Several games are doing `ClipCursor(NULL); ClipCursor(&rect);` in sequence, effectively changing the rect on every frame. I believe the slowdown comes from the Win32 window creation, not really from `XGrabPointer` requests, so that should be optimized instead. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/825#note_8202