summaryrefslogtreecommitdiff
path: root/src/openbox.cc
diff options
context:
space:
mode:
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");
}