mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 02:30:25 +03:00
Fix IME incorrectly positioning always in the terminal cursor position even if the editor was focused.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user