From: Huang Peng Date: Thu, 15 May 2008 03:19:26 +0000 (+0800) Subject: transplate x, y, if client window is not NULL. X-Git-Tag: 0.1.0.20080810~508 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c627611dc49468d1d2ff9485c98a71666c78226;p=platform%2Fupstream%2Fibus.git transplate x, y, if client window is not NULL. --- diff --git a/gtk2/gikimcontext.c b/gtk2/gikimcontext.c index 5cce476..43614b0 100644 --- a/gtk2/gikimcontext.c +++ b/gtk2/gikimcontext.c @@ -300,9 +300,11 @@ gik_im_context_set_cursor_location (GtkIMContext *context, GdkRectangle *area) if (context == CURRENT_CONTEXT && gik_im_client_is_enabled (priv->client)) { /* It is the focused context */ gint x, y; - gdk_window_get_origin (priv->client_window, &x, &y); - area->x += x; - area->y += y; + if(priv->client_window) { + gdk_window_get_origin (priv->client_window, &x, &y); + area->x += x; + area->y += y; + } gik_im_client_set_cursor_location (priv->client, area); } gtk_im_context_set_cursor_location (priv->slave, area);