Module: wine Branch: master Commit: ef292465bebe13a0dcb52a65a940505f0149f728 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ef292465bebe13a0dcb52a65a9...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Nov 9 14:53:34 2011 +0100
winex11: Use the motion event time to decide when to update the cursor.
---
dlls/winex11.drv/mouse.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index 83c714a..112b4cf 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -548,10 +548,10 @@ static void send_mouse_input( HWND hwnd, Window window, unsigned int state, INPU if (!clip_hwnd) return; if (thread_data->clip_window != window) return; if (InterlockedExchangePointer( (void **)&cursor_window, clip_hwnd ) != clip_hwnd || - GetTickCount() - last_cursor_change > 100) + input->u.mi.time - last_cursor_change > 100) { sync_window_cursor( window ); - last_cursor_change = GetTickCount(); + last_cursor_change = input->u.mi.time; } input->u.mi.dx += clip_rect.left; input->u.mi.dy += clip_rect.top; @@ -578,10 +578,10 @@ static void send_mouse_input( HWND hwnd, Window window, unsigned int state, INPU MapWindowPoints( hwnd, 0, &pt, 1 );
if (InterlockedExchangePointer( (void **)&cursor_window, hwnd ) != hwnd || - GetTickCount() - last_cursor_change > 100) + input->u.mi.time - last_cursor_change > 100) { sync_window_cursor( data->whole_window ); - last_cursor_change = GetTickCount(); + last_cursor_change = input->u.mi.time; }
if (hwnd != GetDesktopWindow())