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:
@@ -1438,6 +1438,7 @@ void wxWindowMac::WarpPointer(int x_pos, int y_pos)
|
|||||||
DoClientToScreen(&x, &y);
|
DoClientToScreen(&x, &y);
|
||||||
CGPoint cgpoint = CGPointMake( x, y );
|
CGPoint cgpoint = CGPointMake( x, y );
|
||||||
CGWarpMouseCursorPosition( cgpoint );
|
CGWarpMouseCursorPosition( cgpoint );
|
||||||
|
CGAssociateMouseAndMouseCursorPosition(true);
|
||||||
|
|
||||||
// At least GTK sends a mouse moved event after WarpMouse
|
// At least GTK sends a mouse moved event after WarpMouse
|
||||||
wxMouseEvent event(wxEVT_MOTION);
|
wxMouseEvent event(wxEVT_MOTION);
|
||||||
|
Reference in New Issue
Block a user