In certain states of this application, I plan to clamp the OS mouse pointer to specific regions.
For Windows, I use ClipCursor which accepts a rectangle, but this rectangle is relative to the upper left corner of the desktop instead of the application window. I've tried offsetting the rectangle by the window's position, but the clamp region is still off by the size of the window's title bar.