From fb3848450e649a05c0bed84a02bc9ab4e563b5d9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 1 Dec 2002 11:45:55 +0000 Subject: window decorations use "unmanaged" widgets now. --- src/openbox.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/openbox.cc') diff --git a/src/openbox.cc b/src/openbox.cc index 93570c8c..0c534a0f 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -74,6 +74,8 @@ void Openbox::signalHandler(int signal) Openbox::Openbox(int argc, char **argv) + : otk::OtkEventDispatcher(), + otk::OtkEventHandler() { struct sigaction action; @@ -244,14 +246,8 @@ void Openbox::showHelp() void Openbox::eventLoop() { while (!_doshutdown) { - if (XPending(otk::OBDisplay::display)) { - XEvent e; - XNextEvent(otk::OBDisplay::display, &e); - //process_event(&e); - _xeventhandler.handle(e); - } else { - _timermanager.fire(); - } + dispatchEvents(); // from OtkEventDispatcher + _timermanager.fire(); } } -- cgit v1.2.3