Commits

Akira TAGOH committed a4f1fb3

2009-04-02 Akira TAGOH <akira@tagoh.org>

* libgxim/gximprotocol10.c (g_xim_protocol10_closure_XIM_FORWARD_EVENT):
Fix an error handling to avoid a freeze when any parser error happens.
(g_xim_protocol10_closure_signal_XIM_FORWARD_EVENT): likewise.

  • Participants
  • Parent commits 0080ace

Comments (0)

Files changed (2)

+2009-04-02  Akira TAGOH  <akira@tagoh.org>
+
+	* libgxim/gximprotocol10.c (g_xim_protocol10_closure_XIM_FORWARD_EVENT):
+	Fix an error handling to avoid a freeze when any parser error happens.
+	(g_xim_protocol10_closure_signal_XIM_FORWARD_EVENT): likewise.
+
 2009-03-03  Akira TAGOH  <akira@tagoh.org>
 
 	* libgxim/gximmisc.c (g_xim_get_window): increase a reference count

File libgxim/gximprotocol10.c

 	} else {
 		/* better handling error */
 		if (flag & G_XIM_Event_Synchronous)
-			retval = g_xim_connection_cmd_sync_reply(G_XIM_CONNECTION (proto), imid, icid);
-		else
-			retval = g_xim_connection_cmd_forward_event(G_XIM_CONNECTION (proto), imid, icid, flag & ~G_XIM_Event_Synchronous, event);
+			g_xim_connection_cmd_sync_reply(G_XIM_CONNECTION (proto), imid, icid);
+
+		retval = g_xim_connection_cmd_forward_event(G_XIM_CONNECTION (proto), imid, icid, flag & ~G_XIM_Event_Synchronous, event);
 	}
 	if (event)
 		gdk_event_free(event);
 	MSG_NOIMPL_IMIC(XIM_FORWARD_EVENT, imid, icid);
 
 	if (flag & G_XIM_Event_Synchronous)
-		return g_xim_connection_cmd_sync_reply(G_XIM_CONNECTION (proto), imid, icid);
+		g_xim_connection_cmd_sync_reply(G_XIM_CONNECTION (proto), imid, icid);
+
+	g_xim_connection_cmd_forward_event(G_XIM_CONNECTION (proto), imid, icid, flag & ~G_XIM_Event_Synchronous, event);
 
 	return TRUE;
 }