--- old/src/java.desktop/unix/classes/sun/awt/X11InputMethod.java 2018-12-04 10:44:21.006625854 +0900 +++ new/src/java.desktop/unix/classes/sun/awt/X11InputMethod.java 2018-12-04 10:44:20.596612775 +0900 @@ -55,7 +55,7 @@ * Reset the composition state to the current composition state. */ protected void resetCompositionState() { - if (compositionEnableSupported) { + if (compositionEnableSupported && haveActiveClient()) { try { /* Restore the composition mode to the last saved composition mode. */