summaryrefslogtreecommitdiff
path: root/otk/eventdispatcher.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-04 01:29:01 +0000
committerDana Jansens <danakj@orodu.net>2002-12-04 01:29:01 +0000
commitbdc491ccfe71ce29a5a1ea813da4b1c66e2fa330 (patch)
tree13b9e36e5ec02a0ef355ba18874c4854c9608631 /otk/eventdispatcher.cc
parent9860b76c50e5ecacc85921539058eab4c655c38d (diff)
map and unmap work great now yay
Diffstat (limited to 'otk/eventdispatcher.cc')
-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())