changeset 2519:f5145c7119c2

6957166: With XAWT, set arguments properly creating a MouseWheelEvent. Summary: swap some parameters to allow bigger values for click count. Reviewed-by: dav
author yan
date Thu, 24 Jun 2010 11:50:18 +0400
parents 05eb107d6891
children bccf2a4ee318
files src/solaris/classes/sun/awt/X11/XWindow.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/classes/sun/awt/X11/XWindow.java	Fri Jun 18 17:13:26 2010 +0400
+++ b/src/solaris/classes/sun/awt/X11/XWindow.java	Thu Jun 24 11:50:18 2010 +0400
@@ -778,8 +778,8 @@
                                                           x, y,
                                                           xbe.get_x_root(),
                                                           xbe.get_y_root(),
-                                                          clickCount,false,MouseWheelEvent.WHEEL_UNIT_SCROLL,
-                                                          3,button==4 ?  -1 : 1);
+                                                          1,false,MouseWheelEvent.WHEEL_UNIT_SCROLL,
+                                                          3,button==4 ?  -1*clickCount : 1*clickCount);
                 postEventToEventQueue(mwe);
             }
         }