From 949adf1131a2c308bbb7a549959028d9af4834d8 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Mon, 6 Jan 2020 23:20:29 +1100 Subject: Backport: Bug [#2135]. Prevent movement of candidate window while typing. Backport of changeset 7949:59f3c5ced2e2. --- gtk/ScintillaGTK.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 5b0c9b940..c528641fb 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