]>
Dogcows Code - chaz/openbox/blob - eventdispatcher.cc
2de283691bf1ed7229118da7cba4f5310efbaa73
1 #include "eventdispatcher.hh"
7 OtkEventDispatcher::OtkEventDispatcher()
12 OtkEventDispatcher::~OtkEventDispatcher()
16 void OtkEventDispatcher::clearAllHandlers(void)
21 void OtkEventDispatcher::registerHandler(Window id
, OtkEventHandler
*handler
)
23 _map
.insert(std::pair
<Window
, OtkEventHandler
*>(id
, handler
));
26 void OtkEventDispatcher::clearHandler(Window id
)
31 void OtkEventDispatcher::dispatchEvents(void)
34 OtkEventHandler
*handler
;
35 OtkEventMap::iterator it
;
37 while (XPending(OBDisplay::display
)) {
38 XNextEvent(OBDisplay::display
, &e
);
39 it
= _map
.find(e
.xany
.window
);
This page took 0.037891 seconds and 3 git commands to generate.