]> Dogcows Code - chaz/openbox/commitdiff
clean up transient's parent's reference in destructor
authorDana Jansens <danakj@orodu.net>
Mon, 6 Jan 2003 04:33:37 +0000 (04:33 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 6 Jan 2003 04:33:37 +0000 (04:33 +0000)
src/client.cc

index 34edff3e6e99444e9049006b4e4a3a41a0bbf451..b77eb8f075cb579d5f6c2d12bfc3a20336ce72c0 100644 (file)
@@ -72,6 +72,10 @@ OBClient::~OBClient()
 {
   const otk::OBProperty *property = Openbox::instance->property();
 
+  // clean up parents reference to this
+  if (_transient_for)
+    _transient_for->_transients.remove(this); // remove from old parent
+  
   if (Openbox::instance->state() != Openbox::State_Exiting) {
     // these values should not be persisted across a window unmapping/mapping
     property->erase(_window, otk::OBProperty::net_wm_desktop);
This page took 0.027551 seconds and 4 git commands to generate.