Fix mouse events after calling WarpPointer() under OS X.

See #16169.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-04-08 21:23:58 +00:00
parent 6a3e9a69ca
commit c135b6e148

View File

@@ -1438,6 +1438,7 @@ void wxWindowMac::WarpPointer(int x_pos, int y_pos)
DoClientToScreen(&x, &y);
CGPoint cgpoint = CGPointMake( x, y );
CGWarpMouseCursorPosition( cgpoint );
CGAssociateMouseAndMouseCursorPosition(true);
// At least GTK sends a mouse moved event after WarpMouse
wxMouseEvent event(wxEVT_MOTION);