all repos — openbox @ 7bfe234d812f14eed1a7d20db9479780390adc99

openbox fork - make it a bit more like ryudo

clean up childrens' transient_for refs
Dana Jansens danakj@orodu.net
commit

7bfe234d812f14eed1a7d20db9479780390adc99

parent

870f6cca3dc930614e21b747424cd572e869ab16

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/client.ccsrc/client.cc

@@ -74,6 +74,12 @@ Client::~Client()

{ const otk::Property *property = Openbox::instance->property(); + // clean up childrens' references + while (!_transients.empty()) { + _transients.front()->_transient_for = 0; + _transients.pop_front(); + } + // clean up parents reference to this if (_transient_for) _transient_for->_transients.remove(this); // remove from old parent