Fix IME incorrectly positioning always in the terminal cursor position even if the editor was focused.

This commit is contained in:
Martín Lucas Golini
2026-09-03 00:15:23 -03:00
parent 3261b460c8
commit 0f2f529276
@@ -2136,7 +2136,7 @@ void TerminalDisplay::initVBOs() {
}
Rectf TerminalDisplay::updateIMELocation() {
if ( !Engine::isMainThread() )
if ( !Engine::isMainThread() || !hasFocus() )
return {};
Float fontSize = mFont->getFontHeight( mFontSize );
Float spaceCharAdvanceX = mFont->getGlyph( 'A', mFontSize, false, false ).advance;