diff --git a/src/osgViewer/GraphicsWindowX11.cpp b/src/osgViewer/GraphicsWindowX11.cpp index 15a92e3c9..4f7b9532b 100644 --- a/src/osgViewer/GraphicsWindowX11.cpp +++ b/src/osgViewer/GraphicsWindowX11.cpp @@ -1210,7 +1210,7 @@ void GraphicsWindowX11::adaptKey(XKeyEvent& keyevent, int& keySymbol, unsigned i void GraphicsWindowX11::requestWarpPointer(float x,float y) { - Display* display = getDisplayToUse(); + Display* display = _eventDisplay; // getDisplayToUse(); XWarpPointer( display, None,