aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2020-01-06 23:06:44 +1100
committerZufu Liu <unknown>2020-01-06 23:06:44 +1100
commit699493532003ed35e10075a58e3a2761d9d8f6f2 (patch)
treed979dcbf4c2038094aa7df33999b7dba69dd5a45 /gtk/ScintillaGTK.cxx
parentefc60deb7937c6763985ba33d34fe65830778eed (diff)
downloadscintilla-mirror-699493532003ed35e10075a58e3a2761d9d8f6f2.tar.gz
Backport: Bug [#2135]. Set candidate window position in windowed IME mode.
Backport of changeset 7947:9d42a88f08cc.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rwxr-xr-xgtk/ScintillaGTK.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 84b073ca3..144942fe8 100755
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -2432,6 +2432,8 @@ void ScintillaGTK::PreeditChangedWindowedThis() {
try {
PreEditString pes(im_context);
if (strlen(pes.str) > 0) {
+ SetCandidateWindowPos();
+
PangoLayout *layout = gtk_widget_create_pango_layout(PWidget(wText), pes.str);
pango_layout_set_attributes(layout, pes.attrs);