all repos — openbox @ 7df3b620e21777dbefa24f381c1a95fafed1c16e

openbox fork - make it a bit more like ryudo

use the timer queue manager
Dana Jansens danakj@orodu.net
commit

7df3b620e21777dbefa24f381c1a95fafed1c16e

parent

36ed114f49544eb17bacf4c359d67bc5d9324b13

1 files changed, 1 insertions(+), 9 deletions(-)

jump to
M otk/application.ccotk/application.cc

@@ -42,17 +42,9 @@ }

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 } }