--- @GTK@.orig\modules\input\gtkimcontextime.c.orig	2011-03-16 05:07:32.566298000 +0900
+++ @GTK@\modules\input\gtkimcontextime.c	2011-03-16 05:15:47.891629000 +0900
@@ -348,6 +348,8 @@
   HWND hwnd;
   HIMC himc;
 
+  if (!context_ime->client_window)
+    return;
   hwnd = GDK_WINDOW_HWND (context_ime->client_window);
   himc = ImmGetContext (hwnd);
   if (!himc)
