]> Dogcows Code - chaz/openbox/blobdiff - otk/eventdispatcher.cc
add a skeletal OBActions class for user actions
[chaz/openbox] / otk / eventdispatcher.cc
index 69fa3d5ab0e428f74ddc49634372da6a380d6cd9..5be1c6b190aa77516c1c4b98b2d7f023c38e2798 100644 (file)
@@ -33,6 +33,7 @@ void OtkEventDispatcher::clearHandler(Window id)
 {
   _map.erase(id);
 }
+
 #include <stdio.h>
 void OtkEventDispatcher::dispatchEvents(void)
 {
@@ -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.024262 seconds and 4 git commands to generate.