summaryrefslogtreecommitdiff
path: root/src/openbox.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-10 04:26:36 +0000
committerDana Jansens <danakj@orodu.net>2002-11-10 04:26:36 +0000
commitf257e4b0792e07e11a56828d4769f618e35df105 (patch)
tree2cc453a28a123f0ba89885161c308c9cd3f31ab9 /src/openbox.cc
parentb9cac2146e1dfe54cb6c0ce647d6c7d58d17de54 (diff)
position the client inside the frame correctly.
unmanage all clients on shutdown
Diffstat (limited to 'src/openbox.cc')
-rw-r--r--src/openbox.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openbox.cc b/src/openbox.cc
index c5a93eeb..757a6984 100644
--- a/src/openbox.cc
+++ b/src/openbox.cc
@@ -105,6 +105,12 @@ Openbox::Openbox(int argc, char **argv)
Openbox::~Openbox()
{
_state = State_Exiting; // time to kill everything
+
+ // unmanage all windows
+ ClientMap::iterator it, end;
+ for (it = _clients.begin(), end = _clients.end(); it != end; ++it) {
+ _xeventhandler.unmanageWindow(it->second);
+ }
// close the X display
otk::OBDisplay::destroy();