diff --git a/src/osgViewer/GraphicsWindowX11.cpp b/src/osgViewer/GraphicsWindowX11.cpp index 34d462c31..919a43159 100644 --- a/src/osgViewer/GraphicsWindowX11.cpp +++ b/src/osgViewer/GraphicsWindowX11.cpp @@ -1427,6 +1427,8 @@ void GraphicsWindowX11::requestWarpPointer(float x,float y) extern "C" { +typedef int (*X11ErrorHandler)(Display*, XErrorEvent*); + int X11ErrorHandling(Display* display, XErrorEvent* event) { osg::notify(osg::NOTICE)<<"Got an X11ErrorHandling call display="<