From bdc491ccfe71ce29a5a1ea813da4b1c66e2fa330 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 4 Dec 2002 01:29:01 +0000 Subject: map and unmap work great now yay --- otk/eventdispatcher.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'otk/eventdispatcher.cc') 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 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()) -- cgit v1.2.3