Commit bc15e1bc authored by Alexandre Julliard's avatar Alexandre Julliard

x11drv: Only warp the mouse pointer if it has actually moved.

parent 1e421c7d
......@@ -289,7 +289,8 @@ void X11DRV_send_mouse_input( HWND hwnd, DWORD flags, DWORD x, DWORD y,
{
queue_raw_mouse_message( WM_MOUSEMOVE, hwnd, pt.x, pt.y, data, time,
extra_info, injected_flags );
if (injected_flags & LLMHF_INJECTED) /* we have to actually move the cursor */
if ((injected_flags & LLMHF_INJECTED) &&
((flags & MOUSEEVENTF_ABSOLUTE) || x || y)) /* we have to actually move the cursor */
{
TRACE( "warping to (%ld,%ld)\n", pt.x, pt.y );
wine_tsx11_lock();
......
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