diff --git a/include/osgViewer/api/X11/GraphicsWindowX11 b/include/osgViewer/api/X11/GraphicsWindowX11 index c4015af86..6f5436567 100644 --- a/include/osgViewer/api/X11/GraphicsWindowX11 +++ b/include/osgViewer/api/X11/GraphicsWindowX11 @@ -169,6 +169,7 @@ class OSGVIEWER_EXPORT GraphicsWindowX11 : public osgViewer::GraphicsWindow void getModifierMap(char* keymap) const; int getModifierMask() const; void syncLocks(); + void flushKeyEvents(); bool _valid; Display* _display; diff --git a/src/osgViewer/GraphicsWindowX11.cpp b/src/osgViewer/GraphicsWindowX11.cpp index 513b68214..73d10b550 100644 --- a/src/osgViewer/GraphicsWindowX11.cpp +++ b/src/osgViewer/GraphicsWindowX11.cpp @@ -993,6 +993,7 @@ void GraphicsWindowX11::checkEvents() case FocusIn : osg::notify(osg::INFO)<<"FocusIn event received"<