From 0ea5de6247c44839807c588d310d9345e534a64c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 3 Jan 2003 23:57:00 +0000 Subject: [PATCH] window states persist across restarts --- src/client.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); + } } -- 2.45.2