summaryrefslogtreecommitdiff
path: root/otk
diff options
context:
space:
mode:
Diffstat (limited to 'otk')
-rw-r--r--otk/eventdispatcher.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/otk/eventdispatcher.cc b/otk/eventdispatcher.cc
index 2a0c4448..5be1c6b1 100644
--- a/otk/eventdispatcher.cc
+++ b/otk/eventdispatcher.cc
@@ -34,6 +34,7 @@ void OtkEventDispatcher::clearHandler(Window id)
_map.erase(id);
}
+#include <stdio.h>
void OtkEventDispatcher::dispatchEvents(void)
{
XEvent e;
@@ -43,6 +44,10 @@ void OtkEventDispatcher::dispatchEvents(void)
while (XPending(OBDisplay::display)) {
XNextEvent(OBDisplay::display, &e);
+#ifdef DEBUG
+ printf("Event %d window %lx\n", e.type, e.xany.window);
+#endif
+
it = _map.find(e.xany.window);
if (it != _map.end())