commit cc58540fcc2a9a7059924bdbe45c66ecce1619b5
Author: Koji Yokota <yok...@lyx.org>
Date:   Tue Jun 3 21:23:51 2025 +0900

    Prevent void call of GuiInputMethod::processPreedit() on Linux
---
 src/frontends/qt/GuiInputMethod.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/frontends/qt/GuiInputMethod.cpp 
b/src/frontends/qt/GuiInputMethod.cpp
index 93a29494e8..d3b12f66c1 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -135,6 +135,10 @@ void GuiInputMethod::setHint(Hint hint){
 
 void GuiInputMethod::processPreedit(QInputMethodEvent* ev)
 {
+       if (ev->preeditString().isEmpty() && ev->commitString().isEmpty() &&
+               !d->has_selection_ && d->im_state_.preediting_ == false)
+               return;
+
        if (!d->buffer_view_->inlineCompletion().empty())
                d->work_area_->completer().hideInline();
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to