- _resize_left += delta.x();
- }
-
- //----------------------------------------------------------------------------
- void Window::doRaise(SGPropertyNode* node_raise)
- {
- if( node_raise && !node_raise->getBoolValue() )
- return;
-
- // Keep a reference to ensure the window is not deleted between removing and
- // adding it back to the scenegraph
- osg::ref_ptr<osg::Group> window = getGroup();
-
- BOOST_FOREACH(osg::Group* parent, getGroup()->getParents())
- {
- // Remove window...
- parent->removeChild(window);
-
- // ...and add again as topmost window
- parent->addChild(window);
- }
-
- if( node_raise )
- node_raise->setBoolValue(false);