--- gtkimcontextsimple.c.ORIGINAL	2008-09-30 19:33:20.000000000 +0100
+++ gtkimcontextsimple.c	2008-10-01 00:01:05.000000000 +0100
@@ -411,7 +411,8 @@
  */
 #define IS_DEAD_KEY(k) \
     (((k) >= GDK_dead_grave && (k) <= (GDK_dead_dasia+1)) || \
-     g_unichar_type (gdk_keyval_to_unicode (k)) == G_UNICODE_NON_SPACING_MARK)
+     ((g_unichar_type (gdk_keyval_to_unicode (k)) == G_UNICODE_NON_SPACING_MARK) && \
+      ((k) < 0x1000000)))
 
 static gboolean
 check_algorithmically (GtkIMContextSimple    *context_simple,
