--- old/src/java.desktop/unix/classes/sun/awt/X11/XlibWrapper.java 2017-10-16 13:03:49.593446398 -0700 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XlibWrapper.java 2017-10-16 13:03:49.437446860 -0700 @@ -529,7 +529,7 @@ display Specifies the connection to the X server. onoff Specifies a Boolean value that indicates whether to enable or disable synchronization. */ - static native int XSynchronize(long display, boolean onoff); + static native long XSynchronize(long display, boolean onoff); /** * Extracts an X event that can be processed in a secondary loop.