namespace otk {
OtkEventDispatcher::OtkEventDispatcher()
- : _fallback(0)
+ : _fallback(0), _master(0)
{
}
_map.erase(id);
}
-#include <stdio.h>
+//#include <stdio.h>
void OtkEventDispatcher::dispatchEvents(void)
{
XEvent e;
while (XPending(OBDisplay::display)) {
XNextEvent(OBDisplay::display, &e);
-#ifdef DEBUG
+#if defined(DEBUG) && 0
printf("Event %d window %lx\n", e.type, e.xany.window);
#endif
if (handler)
handler->handle(e);
+
+ if (_master)
+ _master->handle(e);
}
}