Index: trunk/Ohana/src/kii/picture/cursor.c
===================================================================
--- trunk/Ohana/src/kii/picture/cursor.c	(revision 5852)
+++ trunk/Ohana/src/kii/picture/cursor.c	(revision 6424)
@@ -1,3 +1,5 @@
 # include "Ximage.h"
+
+# define IgnoreMask (long) (~(StructureNotifyMask | SubstructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask | PointerMotionMask))
 
 int LastEvent (Display *display, int type, XEvent *event);
@@ -66,4 +68,7 @@
       write (layout[0].Ximage, line, 40);
     }
+
+    /* remove those events we will ignore */
+    while (XCheckMaskEvent (display, IgnoreMask, &event)) continue;
   }
   return (FALSE);
