changeset 52903:5b91e69e1fd0

8213614: DnD operation change feature does not work with 64bit big endian CPU Reviewed-by: serb
author itakiguchi
date Wed, 14 Nov 2018 18:04:54 -0800
parents 83de6a8b6c33
children 85fb403c0141
files src/java.desktop/unix/classes/sun/awt/X11/XDragSourceContextPeer.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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());