On Thu Nov 3 21:00:10 2022 +0000, Rémi Bernon wrote:
I believe I looked and it's been there for ages. Originally `GetCursorPos` was calling the graphics drivers all the time, and updated wineserver position too after that. The input handling has been refactored and I believe it's been left there to avoid changing too much the behavior but I'm not completely convinced it's still useful.
For additional context, this came up when launching a game full-screen, so `GetCursorPos` should be accurate. There are certain conditions where an `EnterNotify` message will be ignored if a window is created under the cursor - namely if the Wine window is a direct child of the root window and has a GL/Vulkan client subwindow. The `EnterNotify` would normally update the server's cache, but since it's ignored (and since we don't get `EnterNotify` events for client windows), it stays stale. I could the problem from that angle instead.