From developer who added IME GTK2 support for ATSynEdit, I got small patch. What do you think about it?It should make IME Gtk2 support better.Code: Diff [Select][+][-]--- a/lcl/interfaces/gtk2/gtk2callback.inc+++ b/lcl/interfaces/gtk2/gtk2callback.inc@@ -952,6 +952,7 @@ begin Mess.msg := LM_SETFOCUS; DeliverMessage(Data, Mess); + GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS); Result := CallBackDefaultReturn; {$IFDEF VerboseFocus} DebugLnExit('GTKFocusCB DONE');@@ -981,6 +982,7 @@ begin DebugLn('GTKillFocusCB GetFocus=',dbgs(CurFocusWidget),' ParentLCLObject=',dbgsName(LCLObject)); end; {$ENDIF}+ GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS); Result:=CallBackDefaultReturn; end;