projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34cd50e
)
clean up transient's parent's reference in destructor
author
Dana Jansens
<danakj@orodu.net>
Mon, 6 Jan 2003 04:33:37 +0000
(
04:33
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 6 Jan 2003 04:33:37 +0000
(
04:33
+0000)
src/client.cc
patch
|
blob
|
history
diff --git
a/src/client.cc
b/src/client.cc
index 34edff3e6e99444e9049006b4e4a3a41a0bbf451..b77eb8f075cb579d5f6c2d12bfc3a20336ce72c0 100644
(file)
--- a/
src/client.cc
+++ b/
src/client.cc
@@
-72,6
+72,10
@@
OBClient::~OBClient()
{
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) {
// these values should not be persisted across a window unmapping/mapping
property->erase(_window, otk::OBProperty::net_wm_desktop);