JRE-365 Wrong position of IME candidate window

Yet another attempt to fix.
This reapplies a previous fix (which caused JRE-412),
and backports JDK-8184016 from JDK 10, which is supposed to fix JRE-412
(http://hg.openjdk.java.net/jdk10/client/rev/9292a24eb113)
1 file changed