The mouse clip region doesn't get updated if you move or resize the window with key combinations (Windows-Up, Windows-Left, Windows-Right) or if you have a fullscreen toggle in your game. This fixes that by updating it on WM_WINDOWPOSCHANGED which gets called after the window's position, size, or z-index changse.
The mouse clip region doesn't get updated if you move or resize the window with key combinations (Windows-Up, Windows-Left, Windows-Right) or if you have a fullscreen toggle in your game. This fixes that by updating it on
WM_WINDOWPOSCHANGED
which gets called after the window's position, size, or z-index changse.