clean up transient's parent's reference in destructor
This commit is contained in:
parent
34cd50ec51
commit
1297c7c157
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,10 @@ OBClient::~OBClient()
|
||||||
{
|
{
|
||||||
const otk::OBProperty *property = Openbox::instance->property();
|
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) {
|
if (Openbox::instance->state() != Openbox::State_Exiting) {
|
||||||
// these values should not be persisted across a window unmapping/mapping
|
// these values should not be persisted across a window unmapping/mapping
|
||||||
property->erase(_window, otk::OBProperty::net_wm_desktop);
|
property->erase(_window, otk::OBProperty::net_wm_desktop);
|
||||||
|
|
Loading…
Reference in a new issue