diff --git a/src/osgViewer/GraphicsWindowX11.cpp b/src/osgViewer/GraphicsWindowX11.cpp index 2978275ea..5cb639b56 100644 --- a/src/osgViewer/GraphicsWindowX11.cpp +++ b/src/osgViewer/GraphicsWindowX11.cpp @@ -876,6 +876,8 @@ void GraphicsWindowX11::requestWarpPointer(float x,float y) XFlush(_display); XSync(_display, 0); + + getEventQueue()->mouseWarped(x,y); } struct X11WindowingSystemInterface : public osg::GraphicsContext::WindowingSystemInterface diff --git a/src/osgViewer/View.cpp b/src/osgViewer/View.cpp index fe7176343..115732b75 100644 --- a/src/osgViewer/View.cpp +++ b/src/osgViewer/View.cpp @@ -280,6 +280,8 @@ void View::requestWarpPointer(float x,float y) osgGA::GUIEventAdapter* eventState = getEventQueue()->getCurrentEventState(); bool view_invert_y = eventState->getMouseYOrientation()==osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS; + getEventQueue()->mouseWarped(x,y); + osgViewer::GraphicsWindow* gw = dynamic_cast(_camera->getGraphicsContext()); if (gw) {