projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2627b85
)
check for shutdown before waiting for timers
author
Dana Jansens
<danakj@orodu.net>
Sun, 12 Jan 2003 23:07:15 +0000
(23:07 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 12 Jan 2003 23:07:15 +0000
(23:07 +0000)
src/openbox.cc
patch
|
blob
|
history
diff --git
a/src/openbox.cc
b/src/openbox.cc
index
a70f8be
..
2be9133
100644
(file)
--- a/
src/openbox.cc
+++ b/
src/openbox.cc
@@
-319,9
+319,11
@@
void Openbox::showHelp()
void Openbox::eventLoop()
{
- while (
!_shutdown
) {
+ while (
true
) {
dispatchEvents(); // from otk::EventDispatcher
XFlush(otk::Display::display); // flush here before we go wait for timers
+ // don't wait if we're to shutdown
+ if (_shutdown) break;
_timermanager.fire(!_sync); // wait if not in sync mode
}
}