Index: trunk/Ohana/src/kii/event/EventLoop.c
===================================================================
--- trunk/Ohana/src/kii/event/EventLoop.c	(revision 6424)
+++ trunk/Ohana/src/kii/event/EventLoop.c	(revision 6638)
@@ -59,4 +59,11 @@
     /* remove those events we will ignore */
     while (XCheckMaskEvent (display, IgnoreMask, &event)) continue;
+
+    /* events to remove which have no mask component */
+    while (XCheckTypedEvent (display, MappingNotify, &event)) continue;
+    while (XCheckTypedEvent (display, ClientMessage, &event)) continue;
+    while (XCheckTypedEvent (display, SelectionClear, &event)) continue;
+    while (XCheckTypedEvent (display, SelectionNotify, &event)) continue;
+    while (XCheckTypedEvent (display, SelectionRequest, &event)) continue;
   }
   return (status);
