From: Dana Jansens Date: Fri, 3 Jan 2003 23:57:00 +0000 (+0000) Subject: window states persist across restarts X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=0ea5de6247c44839807c588d310d9345e534a64c;p=chaz%2Fopenbox window states persist across restarts --- diff --git a/src/client.cc b/src/client.cc index 88e218a4..3ac9002c 100644 --- a/src/client.cc +++ b/src/client.cc @@ -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); + } }