[LyX/master] Remove an old workaround

Koji Yokota <[email protected]> Thu, 25 Jun 2026 00:59:27 +0000
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit 2ca8f530389f8626d28bca128308b1b754364214
Author: Koji Yokota <[email protected]>
Date:   Sat Jun 20 08:28:11 2026 +0900

    Remove an old workaround
    
    QInputMethod::locale() now works on Qt 5.15.13 and 6.11.0 on Linux
---
 src/frontends/qt/GuiInputMethod.cpp | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/frontends/qt/GuiInputMethod.cpp b/src/frontends/qt/GuiInputMethod.cpp
index e9a28b84ba..0010e13a93 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -134,13 +134,6 @@ GuiInputMethod::~GuiInputMethod()
 
 void GuiInputMethod::toggleInputMethodAcceptance()
 {
-	if (guiApp->platformName() != "cocoa")
-		// Since QInputMethod::locale() doesn't work on other systems, use
-		// language at the cursor point to infer the current input language
-		// as a second best
-		d->im_off_in_math_ =
-			d->cur_->getFont().language()->inputMethodOffInMath();
-
 	// note that d->cur_->inset() is a cache so it lags from actual key moves
 	bool enabled = !((d->im_off_in_math_
 			  && d->cur_->inset().currentMode() == Inset::MATH_MODE)
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs