--- qt-copy-3.0.4.orig/src/kernel/qinputcontext_x11.cpp	2002-05-09 04:09:56.000000000 +0900
+++ qt-copy-3.0.4/src/kernel/qinputcontext_x11.cpp	2002-05-28 03:51:45.000000000 +0900
@@ -43,6 +43,7 @@
 #include <stdlib.h>
 
 int compose_keycode = 0;
+int lookupstring_cnt = 0;
 
 #if !defined(QT_NO_XIM)
 
@@ -69,6 +70,7 @@
 	qic->composing = TRUE;
 	qic->lastcompose = qic->text = QString::null;
 	qic->focusWidget = 0;
+	lookupstring_cnt = 1;
 
 	// qDebug("compose start");
 	return 0;
@@ -142,7 +144,8 @@
 					  compose_keycode, 0);
 
 	    if ( qic->text.isEmpty() ) {
-		if ( sym == XK_Return ) {
+		//if ( sym == XK_Return ) {
+		if ( lookupstring_cnt != 1 ) {
 		    // qDebug("user pressed return, send an IMEnd...");
 		    QIMEvent endevent(QEvent::IMEnd, qic->lastcompose, -1);
 		    QApplication::sendEvent(qic->focusWidget, &endevent);
--- qt-copy-3.0.4.orig/src/kernel/qapplication_x11.cpp	2002-05-09 04:09:55.000000000 +0900
+++ qt-copy-3.0.4/src/kernel/qapplication_x11.cpp	2002-05-28 03:48:42.000000000 +0900
@@ -5238,7 +5238,8 @@
 	    QInputContext *qic = (QInputContext *) xd->xic;
 	    if ( qic ) {
 		mb=TRUE;
-		count = qic->lookupString(&xkeyevent, chars, &key, &status);
+		extern int lookupstring_cnt;
+		lookupstring_cnt = count = qic->lookupString(&xkeyevent, chars, &key, &status);
 	    }
 	}
 	if ( !mb ) {
