[PATCH] winex11.drv: get hwnd for injected mouse events

Alexandre Julliard julliard at winehq.org
Fri Feb 15 04:26:44 CST 2008


"Lei Zhang" <thestig at google.com> writes:

> --- a/dlls/winex11.drv/mouse.c
> +++ b/dlls/winex11.drv/mouse.c
> @@ -278,6 +278,7 @@ void X11DRV_send_mouse_input( HWND hwnd, DWORD flags, DWORD x, DWORD y,
>          {
>              pt.x = (x * screen_width) >> 16;
>              pt.y = (y * screen_height) >> 16;
> +            hwnd = GetAncestor(WindowFromPoint(pt), GA_PARENT);

This should not be needed, for injected events the window is determined
on the server side.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list