JDK-8212677 : X11 default visual support for IM status window on VNC
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8,11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: generic
  • Submitted: 2018-10-19
  • Updated: 2023-08-28
  • Resolved: 2019-02-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 8 Other
11.0.4Fixed 13 b08Fixed 8u361Fixed openjdk8u392Fixed
Description
Issue:
Java's Native IM status window is not displayed even if it's there.
Because of this issue, user cannot get proper visual feedback during key 
input operation.
We found this issue on Tiger VNC.

Reason:
Java may pick up unexpected visual for Java's Native IM status window 
when  Xserver supports multiple visual.

Workaround:
X11 default visual can be changed by FORCEDEFVIS environment variable, 
but it's not easy to find out default visual id.

I used kinput2 XIM server to take screen shot.

Initial review request:
http://mail.openjdk.java.net/pipermail/awt-dev/2018-November/014769.html
Comments
Fix request (8u) Clean backport. The fix for Input Methods used in VNC environment. Review 8u-dev: https://github.com/openjdk/jdk8u-dev/pull/345
12-08-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u-dev/pull/345 Date: 2023-07-24 20:23:40 +0000
24-07-2023

Fix Request This fix is required Linux's X11 Input Method and VNC environment. I'd like to request the fix in 11u. The patch could apply cleanly. * src/java.desktop/unix/native/libawt_xawt/awt/awt_GraphicsEnv.c * src/java.desktop/unix/native/libawt_xawt/awt/awt_InputMethod.c (But copyright year was not updated, because of prerequisite 8214076 for awt_GraphicsEnv.c)
08-05-2019

URL: http://hg.openjdk.java.net/jdk/jdk/rev/9b93a6b30cbe User: psadhukhan Date: 2019-02-07 06:42:23 +0000
07-02-2019

URL: http://hg.openjdk.java.net/jdk/client/rev/9b93a6b30cbe User: serb Date: 2019-02-01 23:35:36 +0000
01-02-2019