Fix bad mouse lag in games that do their own mouse warping.

This commit is contained in:
Vitaliy Margolen 2005-10-24 15:11:37 +00:00 committed by Alexandre Julliard
parent c22716f5ec
commit f610f31c10
1 changed files with 1 additions and 0 deletions

View File

@ -697,6 +697,7 @@ BOOL X11DRV_SetCursorPos( INT x, INT y )
wine_tsx11_lock();
XWarpPointer( display, root_window, root_window, 0, 0, 0, 0, x, y );
XFlush( display ); /* avoids bad mouse lag in games that do their own mouse warping */
cursor_pos.x = x;
cursor_pos.y = y;
wine_tsx11_unlock();