From 65ac804b7d2359db7e9548eb6db72f47e127f20d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 1 Oct 2007 09:41:05 +0000 Subject: [PATCH] Changed requestWarpPointer to use _eventDislay to avoid crash in osghanglide example due to async usage. --- src/osgViewer/GraphicsWindowX11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,