<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hello
<div class="">I’m probably missing something about XIM on X side here, using ssh -X from ubuntu(with Xserver) to solaris11 sparc64 machine</div>
<div class=""><br class="">
</div>
<div class="">the output is</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">fevent = 0x3</div>
<div class="">topwindow = 0x3800001, window = 0x3800002</div>
<div class="">ClientMessage is received</div>
<div class="">WM_TAKE_FOCUS is received, window=0x3800002, timestamp=3262503</div>
<div class="">XSetInputFocus() is called</div>
<div class="">FocusIn: window=0x3800001(XIM demo - root-im window - 64bit)</div>
<div class="">FocusIn: window=0x3800002(Internal Window)</div>
<div class=""> XSetICFocus</div>
<div class="">FocusOut: window=0x3800002(Internal Window)</div>
<div class=""> XUnsetICFocus</div>
<div class="">FocusOut: window=0x3800001(XIM demo - root-im window - 64bit)</div>
<div class="">ClientMessage is received</div>
<div class="">WM_TAKE_FOCUS is received, window=0x3800002, timestamp=3267238</div>
<div class="">XSetInputFocus() is called</div>
<div class="">ButtonPress:</div>
<div class="">[1]w=0x0</div>
<div class="">[2]w=0x0</div>
<div class="">[1]state=0x0</div>
<div class="">[2]state=0x0</div>
<div class="">State: Unknown</div>
<div class="">FocusIn: window=0x3800001(XIM demo - root-im window - 64bit)</div>
<div class="">FocusIn: window=0x3800002(Internal Window)</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I also had to press left button, not right one. </div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I think when you initialy created 8213232 you were targeting linux ppc64 BE system in your patch and simply forgot about another 64-bit BE system - solaris sparc64</div>
<div class=""><br class="">
</div>
<div class="">I would propose this fix for 8227919</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">--- a/src/java.desktop/unix/native/libawt_xawt/awt/awt_InputMethod.c</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">+++ b/src/java.desktop/unix/native/libawt_xawt/awt/awt_InputMethod.c</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">@@ -1671,7 +1671,7 @@</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> {</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">     X11InputMethodData *pX11IMData = NULL;</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">     char * ret = NULL;</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">-#if defined(_LP64) && !defined(_LITTLE_ENDIAN)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">+#if defined(__linux__) && defined(_LP64) && !defined(_LITTLE_ENDIAN)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">     // XIMPreeditState value which is used for XGetICValues must be 32bit on BigEndian XOrg's xlib</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">     unsigned int state = XIMPreeditUnKnown;</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> #else</span></div>
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Such change already allowed to pass our internal tests on solaris sparc64</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">if you think it’s ok then let me take over and finish with 8227919</span></div>
<div><br class="">
</div>
<div>Thanks, Vladimir<br class="">
<blockquote type="cite" class="">
<div class="">19 июля 2019 г., в 16:57, Ichiroh Takiguchi <<a href="mailto:takiguc@linux.vnet.ibm.com" class="">takiguc@linux.vnet.ibm.com</a>> написал(а):</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hello.<br class="">
<br class="">
I need Solaris 64bit SPARC desktop user volunteer for jdk-8227919 [1]<br class="">
<br class="">
Please follow the steps:<br class="">
1. Download xim_root.c [2] and compile it on Solaris 64bit SPARC<br class="">
2. Run xim_root on desktop<br class="">
3. Move input focus to XIM demo window<br class="">
4. Press Ctrl key and Press Right mouse button<br class="">
<br class="">
Please put the output into JDK-8227919 [1] or post it into mailing list.<br class="">
I really appreciate if you are using XIM like IIIMF.<br class="">
<br class="">
[1] <a href="https://bugs.openjdk.java.net/browse/JDK-8227919" class="">https://bugs.openjdk.java.net/browse/JDK-8227919</a><br class="">
[2] <a href="https://cr.openjdk.java.net/~itakiguchi/8227919/xim_root.c" class="">
https://cr.openjdk.java.net/~itakiguchi/8227919/xim_root.c</a><br class="">
<br class="">
Thanks,<br class="">
Ichiroh Takiguchi<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>