Zhaocong Jia
2017-09-02 13:51:17 UTC
See the bug report here:
https://savannah.gnu.org/bugs/?47338
This bug happens when using "fcitx" input method
(or other input method I think), the "preeditString"
get disappear.
This happens for 1.99.5 with Qt5 on Linux (there's
no bug for the Qt4 pre-compiled binary). After some
bisecting, I find this bug exists in 2016-05-17, I can't
compile earlier versions to give a precise commit.
I think around that time, Qt5 support is being added,
so I presume this bug is related with Qt5.
The following patch "fix" this bug. It was supposed to
process and show the "preeditString", now I disabled that.
I hope this bug get resolved soon, because it affects almost
all CJK users.
diff --git a/src/Plugins/Qt/QTMWidget.cpp b/src/Plugins/Qt/QTMWidget.cpp
index d14b514ac..060651e89 100644
--- a/src/Plugins/Qt/QTMWidget.cpp
+++ b/src/Plugins/Qt/QTMWidget.cpp
@@ -559,8 +559,8 @@ QTMWidget::inputMethodEvent (QInputMethodEvent* event) {
r = r * as_string (pos) * ":" * from_qstring (preedit_string);
}
- if (!is_nil (tmwid))
- the_gui->process_keypress (tm_widget(), r, texmacs_time());
+ //if (!is_nil (tmwid))
+ //the_gui->process_keypress (tm_widget(), r, texmacs_time());
event->accept();
}
Best wishes,
Jia
https://savannah.gnu.org/bugs/?47338
This bug happens when using "fcitx" input method
(or other input method I think), the "preeditString"
get disappear.
This happens for 1.99.5 with Qt5 on Linux (there's
no bug for the Qt4 pre-compiled binary). After some
bisecting, I find this bug exists in 2016-05-17, I can't
compile earlier versions to give a precise commit.
I think around that time, Qt5 support is being added,
so I presume this bug is related with Qt5.
The following patch "fix" this bug. It was supposed to
process and show the "preeditString", now I disabled that.
I hope this bug get resolved soon, because it affects almost
all CJK users.
diff --git a/src/Plugins/Qt/QTMWidget.cpp b/src/Plugins/Qt/QTMWidget.cpp
index d14b514ac..060651e89 100644
--- a/src/Plugins/Qt/QTMWidget.cpp
+++ b/src/Plugins/Qt/QTMWidget.cpp
@@ -559,8 +559,8 @@ QTMWidget::inputMethodEvent (QInputMethodEvent* event) {
r = r * as_string (pos) * ":" * from_qstring (preedit_string);
}
- if (!is_nil (tmwid))
- the_gui->process_keypress (tm_widget(), r, texmacs_time());
+ //if (!is_nil (tmwid))
+ //the_gui->process_keypress (tm_widget(), r, texmacs_time());
event->accept();
}
Best wishes,
Jia