[maemo-commits] [maemo-commits] r14798 - in projects/haf/trunk/hildon-input-method-framework: . src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Nov 19 13:43:53 EET 2007
Author: tjunnone
Date: 2007-11-19 13:43:51 +0200 (Mon, 19 Nov 2007)
New Revision: 14798

Modified:
   projects/haf/trunk/hildon-input-method-framework/ChangeLog
   projects/haf/trunk/hildon-input-method-framework/src/hildon-im-context.c
Log:
2007-11-19  Tomas Junnonen  <tomas.junnonen at nokia.com>

        * src/hildon-im-context.c:
        - Unrealizing widgets should only trigger an IM hide command
          if the widget in question had focus. Fixes NB#73109.


Modified: projects/haf/trunk/hildon-input-method-framework/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-input-method-framework/ChangeLog	2007-11-19 11:40:02 UTC (rev 14797)
+++ projects/haf/trunk/hildon-input-method-framework/ChangeLog	2007-11-19 11:43:51 UTC (rev 14798)
@@ -3,6 +3,8 @@
 	* src/hildon-im-context.c:
 	- Pressing shift no longer resets the dead key state, which
 	  makes shift + dead keys commutative. Fixes NB#76248.
+	- Unrealizing widgets should only trigger an IM hide command
+	  if the widget in question had focus. Fixes NB#73109.
 
 2007-10-24  Mohammad Anwari  <mohammad.anwari at nokia.com> 
 

Modified: projects/haf/trunk/hildon-input-method-framework/src/hildon-im-context.c
===================================================================
--- projects/haf/trunk/hildon-input-method-framework/src/hildon-im-context.c	2007-11-19 11:40:02 UTC (rev 14797)
+++ projects/haf/trunk/hildon-input-method-framework/src/hildon-im-context.c	2007-11-19 11:43:51 UTC (rev 14798)
@@ -1095,7 +1095,7 @@
     gdk_window_remove_filter(self->client_gdk_window,
                              (GdkFilterFunc)client_message_filter, self );
 
-    if (window == NULL)  /* Hide IM window when textwidget is unrealized */
+    if (window == NULL && self->has_focus ) /* Hide IM window when textwidget is unrealized */
     {
       if (is_internal_widget == FALSE)
       {


More information about the maemo-commits mailing list