]> Dogcows Code - chaz/openbox/blobdiff - otk/eventdispatcher.cc
map and unmap work great now yay
[chaz/openbox] / otk / eventdispatcher.cc
index 2a0c4448f59c045c604e75e1261b4c118d66f103..5be1c6b190aa77516c1c4b98b2d7f023c38e2798 100644 (file)
@@ -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())
This page took 0.02308 seconds and 4 git commands to generate.