On Fri, 18 Aug 2023 12:55:45 GMT, 柳鲲鹏 <[email protected]> wrote:
>> src/java.desktop/unix/classes/sun/awt/X11/XInputMethod.java line 208: >> >>> 206: y += temp.getY(); >>> 207: temp = parent; >>> 208: } >> >> Have you tried to use just _java.awt.Component#getLocationOnScreen_? > >> Have you tried to use just _java.awt.Component#getLocationOnScreen_? > > Thanks for reply. > 1, I will research the document. I tested some linux oses, only ubuntu has > problem. > Is there a macro to tell us the system is ubuntu? > 2, On linux, IME need the offset position of JTextArea from focus > window(frame/dialog). So we use a loop to get it. > > Good luck! First result: When using XIMPreeditPosition, the XCreateIC() return NULL. So suggest that we fix the problem first, and a comment with reason. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/13055#discussion_r1298447558
