diff --git a/gtkhtml/gtkhtml.c b/gtkhtml/gtkhtml.c
index e78ba1d..543bc44 100644
--- a/gtkhtml/gtkhtml.c
+++ b/gtkhtml/gtkhtml.c
@@ -2147,6 +2147,8 @@ focus_in_event (GtkWidget *widget,
 			gtk_window_set_focus (GTK_WINDOW (window), html->iframe_parent);
 	}
 
+	printf ("%s: html->iframe_parent:%p\n", __FUNCTION__, html->iframe_parent);
+	
 	html->priv->need_im_reset = TRUE;
 	gtk_im_context_focus_in (html->priv->im_context);
 
@@ -2164,6 +2166,7 @@ focus_out_event (GtkWidget *widget,
 {
 	GtkHTML *html = GTK_HTML (widget);
 
+	printf ("%s: html->iframe_parent:%p\n", __FUNCTION__, html->iframe_parent);
 	html_painter_set_focus (html->engine->painter, FALSE);
 	html_engine_redraw_selection (html->engine);
 	/* printf ("focus out\n"); */
