summaryrefslogtreecommitdiff
path: root/src/openbox.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-03 19:36:41 +0000
committerDana Jansens <danakj@orodu.net>2003-01-03 19:36:41 +0000
commitf8ea576460470ecc2e395cf43e31a67752adbbb5 (patch)
tree027335252fe3bb67803b637a2815ba2ae189e65d /src/openbox.cc
parent660ad41ca0b1c48525bba071a27def141ad1cbfe (diff)
rm the old bb src
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 4d2f1024..9761b468 100644
--- a/src/openbox.cc
+++ b/src/openbox.cc
@@ -172,6 +172,9 @@ Openbox::~Openbox()
{
_state = State_Exiting; // time to kill everything
+ // return input focus to the root
+ XSetInputFocus(otk::OBDisplay::display, PointerRoot, None, CurrentTime);
+
std::for_each(_screens.begin(), _screens.end(), otk::PointerAssassin());
delete _bindings;
@@ -179,9 +182,12 @@ Openbox::~Openbox()
delete _property;
python_destroy();
+
+ XSync(otk::OBDisplay::display, False);
// close the X display
otk::OBDisplay::destroy();
+ printf("Exiting!\n");
}