On Thu Oct 24 17:07:22 2024 +0000, Paul Gofman wrote:
I designed a test which does SetWindowPos, changes window rect and ends up not changing client rect (which strictly speaking doesn't require mouse sync as relative position is unchanged), and indeed Windows still sends mouse move. I've updated the patch and attaching my ad-hoc change to test I used to confirm that. [0001-test1.patch](/uploads/0421ed64e9cfc7ed3e50d19e79148461/0001-test1.patch)
You probably don't need to bother checking the rects at all?
```suggestion:-0+1 if (win->style & orig_style & WS_VISIBLE) update_cursor_pos( win->desktop ); ```