<AWT Dev> Proposal: DnD cursor is too big on AIX
Ichiroh Takiguchi
takiguc at linux.vnet.ibm.com
Tue Jun 19 13:55:55 UTC 2018
Hello,
IBM would like to contribute a patch to OpenJDK project.
DnD cursor is too big on IBM AIX. Although XQueryBestCursor() returns
64x64 dots in the environment,
32x32 dots are preferred.
I'd like to obtain a sponsor for this patch.
--------
--- old/src/java.desktop/unix/classes/sun/awt/X11/XCustomCursor.java
2018-06-19 22:44:32 +0000
+++ new/src/java.desktop/unix/classes/sun/awt/X11/XCustomCursor.java
2018-06-19 22:44:32 +0000
@@ -63,6 +63,10 @@
XlibWrapper.XQueryBestCursor(display,root_window,
Math.abs(preferredWidth),Math.abs(preferredHeight),XlibWrapper.larg1,XlibWrapper.larg2);
d = new
Dimension(XlibWrapper.unsafe.getInt(XlibWrapper.larg1),XlibWrapper.unsafe.getInt(XlibWrapper.larg2));
+ if ( preferredWidth > 0 && preferredHeight > 0 ) {
+ d.width = Math.min(d.width, preferredWidth);
+ d.height = Math.min(d.height, preferredHeight);
+ }
}
finally {
XToolkit.awtUnlock();
--------
Thanks,
Ichiroh Takiguchi
IBM Japan, Ltd.
More information about the awt-dev
mailing list