diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-16 12:10:04 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-16 12:10:04 +0000 |
| commit | 7df3b620e21777dbefa24f381c1a95fafed1c16e (patch) | |
| tree | 375dad784b4bfb80a02486fa2d236d22079514fc | |
| parent | 36ed114f49544eb17bacf4c359d67bc5d9324b13 (diff) | |
use the timer queue manager
| -rw-r--r-- | otk/application.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/otk/application.cc b/otk/application.cc index efe6ad85..490486ec 100644 --- a/otk/application.cc +++ b/otk/application.cc @@ -42,17 +42,9 @@ void OtkApplication::loadStyle(void) void OtkApplication::exec(void) { - const int xfd = ConnectionNumber(OBDisplay::display); - fd_set rfds; - timeval *timeout = 0; - while (1) { dispatchEvents(); - - FD_ZERO(&rfds); - FD_SET(xfd, &rfds); - - select(xfd + 1, &rfds, 0, 0, timeout); + _timer_manager->fire(); // fire pending events } } |
