Vitaliy Margolen <wine-patches(a)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(a)winehq.org