< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XDragSourceContextPeer.java

Print this page

        

@@ -651,11 +651,11 @@
                     xmotion.set_time(xkey.get_time());
                     xmotion.set_x(xkey.get_x());
                     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());
 
                     //It's safe to use key event as motion event since we use only their common fields.
< prev index next >