window states persist across restarts

This commit is contained in:
Dana Jansens 2003-01-03 23:57:00 +00:00
parent 7417e2b54e
commit 0ea5de6247

View file

@ -98,9 +98,11 @@ OBClient::~OBClient()
{
const otk::OBProperty *property = Openbox::instance->property();
// 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_state);
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);
property->erase(_window, otk::OBProperty::net_wm_state);
}
}