From 86a2bed6595cdc926dccb4a7c0f984fd5996e3c2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 3 Jan 2003 20:10:25 +0000 Subject: remove the block on shutdown --- src/openbox.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/openbox.cc') diff --git a/src/openbox.cc b/src/openbox.cc index 9761b468..71eb4d9b 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -172,9 +172,6 @@ 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; @@ -183,11 +180,14 @@ Openbox::~Openbox() python_destroy(); - XSync(otk::OBDisplay::display, False); - - // close the X display - otk::OBDisplay::destroy(); - printf("Exiting!\n"); + XSetInputFocus(otk::OBDisplay::display, PointerRoot, RevertToNone, + CurrentTime); + XSync(otk::OBDisplay::display, false); + + // this tends to block.. i honestly am not sure why. causing an x error in + // the shutdown process unblocks it. blackbox simply did a ::exit(0), so + // all im gunna do is the same. + //otk::OBDisplay::destroy(); } -- cgit v1.2.3