diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-03 20:10:25 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-03 20:10:25 +0000 |
| commit | 86a2bed6595cdc926dccb4a7c0f984fd5996e3c2 (patch) | |
| tree | 46e234d4acc477d3b26b36b2d2a55b081a41264d /src/openbox.cc | |
| parent | 4a07868e794c5e0974d15e89579b53d598273426 (diff) | |
remove the block on shutdown
Diffstat (limited to 'src/openbox.cc')
| -rw-r--r-- | src/openbox.cc | 16 |
1 files changed, 8 insertions, 8 deletions
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(); } |
