winex11.drv: Update cached cursor position after calling hook.

Alexandre Julliard julliard at winehq.org
Thu Dec 7 04:56:42 CST 2006


Vitaliy Margolen <wine-patches at kievinfo.com> writes:

> @@ -276,10 +274,12 @@ void X11DRV_send_mouse_input( HWND hwnd,
>          if ((injected_flags & LLMHF_INJECTED) &&
>              ((flags & MOUSEEVENTF_ABSOLUTE) || x || y))  /* we have to actually move the cursor */
>          {
> -            TRACE( "warping to (%d,%d)\n", pt.x, pt.y );
> +            X11DRV_SetCursorPos( pt.x, pt.y );
> +        }
> +        else
> +        {
>              wine_tsx11_lock();
> -            XWarpPointer( thread_display(), root_window, root_window, 0, 0, 0, 0,
> -                          pt.x - virtual_screen_rect.left, pt.y - virtual_screen_rect.top );
> +            cursor_pos = pt;
>              wine_tsx11_unlock();
>          }

You need to update the position for button events too.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list