From 23206270e0abd3a2cffb2fe3bc2e9f58b1654a57 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 3 Jan 2007 23:00:05 +0000 Subject: [PATCH] Added catch of window close --- include/osgViewer/GraphicsWindowX11 | 2 ++ src/osgViewer/GraphicsWindowX11.cpp | 13 ++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/include/osgViewer/GraphicsWindowX11 b/include/osgViewer/GraphicsWindowX11 index 3eb3ee703..4f3eaa45e 100644 --- a/include/osgViewer/GraphicsWindowX11 +++ b/include/osgViewer/GraphicsWindowX11 @@ -124,6 +124,8 @@ class GraphicsWindowX11 : public osgViewer::GraphicsWindow Cursor _defaultCursor; Cursor _nullCursor; Cursor _currentCursor; + + Atom _deleteWindow; bool _initialized; bool _realized; diff --git a/src/osgViewer/GraphicsWindowX11.cpp b/src/osgViewer/GraphicsWindowX11.cpp index 98e0de89f..fba3dc1e0 100644 --- a/src/osgViewer/GraphicsWindowX11.cpp +++ b/src/osgViewer/GraphicsWindowX11.cpp @@ -504,6 +504,9 @@ void GraphicsWindowX11::init() //osg::notify(osg::NOTICE)<<"After sync apply.x = "<width; int windowHeight = _traits->height; - // osg::notify(osg::NOTICE)<<"Check events"<