diff --git a/src/osgViewer/GraphicsWindowX11.cpp b/src/osgViewer/GraphicsWindowX11.cpp index 7be52d3fa..402d495ba 100644 --- a/src/osgViewer/GraphicsWindowX11.cpp +++ b/src/osgViewer/GraphicsWindowX11.cpp @@ -29,6 +29,8 @@ #include /* For CARD16 */ +#include + using namespace osgViewer; namespace osgViewer @@ -1085,6 +1087,9 @@ void GraphicsWindowX11::requestWarpPointer(float x,float y) getEventQueue()->mouseWarped(x,y); } +extern "C" +{ + int X11ErrorHandling(Display* display, XErrorEvent* event) { osg::notify(osg::NOTICE)<<"Got an X11ErrorHandling call display="<