]> Dogcows Code - chaz/openbox/commitdiff
window states persist across restarts
authorDana Jansens <danakj@orodu.net>
Fri, 3 Jan 2003 23:57:00 +0000 (23:57 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 3 Jan 2003 23:57:00 +0000 (23:57 +0000)
src/client.cc

index 88e218a4965d5526a71605cd9a878cd6eb73bdb1..3ac9002c8fe860d650b0d11cab98fc406f59e7a3 100644 (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);
+  }
 }
 
 
This page took 0.026053 seconds and 4 git commands to generate.