winex11.drv: Allow grabed window belonging to a different thread in send_mouse_input.

Henri Verbeet hverbeet at gmail.com
Wed Mar 9 09:02:04 CST 2016


On 8 March 2016 at 17:01, Jacek Caban <jacek at codeweavers.com> wrote:
> Signed-off-by: Jacek Caban <jacek at codeweavers.com>
>
> If we call XGrabPointer on a window belonging to a different thread, we
> may end up handling its events with different display and being unable
> to associate X11 window with HWND.

Is calling SetCapture() on a window from a different thread really
supposed to be valid? Assuming it is, wouldn't it then be easier to
grab the window from the correct thread instead? (Similar to how e.g.
WM_X11DRV_CLIP_CURSOR works.)



More information about the wine-devel mailing list