From 8daffd01bafce7eca8400f2f2b60acdb7d76db5e Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Mon, 6 Jan 2020 23:20:29 +1100 Subject: Bug [#2135]. Prevent movement of candidate window while typing. --- doc/ScintillaHistory.html | 1 + gtk/ScintillaGTK.cxx | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index f210d64eb..a3ebbddea 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -600,6 +600,7 @@ Improve IME behaviour on GTK. Set candidate position for windowed IME. Improve location of candidate window. + Prevent movement of candidate window while typing. Bug #2135. diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 33313b264..3560d517d 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2388,8 +2388,11 @@ void ScintillaGTK::PreeditChangedInlineThis() { return; } - if (initialCompose) + if (initialCompose) { ClearBeforeTentativeStart(); + } + + SetCandidateWindowPos(); pdoc->TentativeStart(); // TentativeActive() from now on std::vector indicator = MapImeIndicators(preeditStr.attrs, preeditStr.str); @@ -2423,7 +2426,6 @@ void ScintillaGTK::PreeditChangedInlineThis() { } EnsureCaretVisible(); - SetCandidateWindowPos(); ShowCaretAtCurrentPosition(); } catch (...) { errorStatus = SC_STATUS_FAILURE; -- cgit v1.2.3