Commit a1580bba authored by Alexandre Julliard's avatar Alexandre Julliard

dinput: Clip to the client area instead of the whole window in exclusive mode.

parent f09e4ce2
......@@ -426,7 +426,8 @@ static void warp_check( SysMouseImpl* This, BOOL force )
This->last_warped = now;
This->need_warp = FALSE;
if (!GetWindowRect(This->base.win, &rect)) return;
if (!GetClientRect(This->base.win, &rect)) return;
MapWindowPoints( This->base.win, 0, (POINT *)&rect, 2 );
if (!This->clipped)
{
mapped_center.x = (rect.left + rect.right) / 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment