8213614: DnD operation change feature does not work with 64bit big endian CPU
authoritakiguchi
Wed, 14 Nov 2018 18:04:54 -0800
changeset 52746 5b91e69e1fd0
parent 52745 83de6a8b6c33
child 52747 85fb403c0141
8213614: DnD operation change feature does not work with 64bit big endian CPU Reviewed-by: serb
src/java.desktop/unix/classes/sun/awt/X11/XDragSourceContextPeer.java
--- a/src/java.desktop/unix/classes/sun/awt/X11/XDragSourceContextPeer.java	Wed Nov 14 13:52:33 2018 -0800
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XDragSourceContextPeer.java	Wed Nov 14 18:04:54 2018 -0800
@@ -653,7 +653,7 @@
                     xmotion.set_y(xkey.get_y());
                     xmotion.set_x_root(xkey.get_x_root());
                     xmotion.set_y_root(xkey.get_y_root());
-                    xmotion.set_state((int)Native.getLong(XlibWrapper.larg7));
+                    xmotion.set_state(Native.getInt(XlibWrapper.larg7));
                     // we do not use this field, so it's unset for now
                     // xmotion.set_is_hint(???);
                     xmotion.set_same_screen(xkey.get_same_screen());