]> Dogcows Code - chaz/openbox/blobdiff - src/client.cc
clean up transient's parent's reference in destructor
[chaz/openbox] / 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.01957 seconds and 4 git commands to generate.