Hi Brad, On 1/3/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
Thanks for the pointer, I tried adding this to GrapicsWindowX11::init and checkEvents respectively but alas it does catch the window close/destruction. I also check for the DestroyNotify event too, and this doesn't catch anything either. Do I need to add anything else to tell X that this window should respond to WM_DELETE_WINDOW?
A bit more searching on the web came up with the need to add a: XSetWMProtocols(_display, _window, &_deleteWindow, True); Now my checkEvents catches the delete and the window doesn't close, which leaves me in full control of the window destruction which is exactly what I need. Many thanks for the pointer. Tomorrow I'll wire it up properly and check the changes in. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
