diff --git a/src/java.desktop/unix/classes/sun/awt/wl/WLPointerEvent.java b/src/java.desktop/unix/classes/sun/awt/wl/WLPointerEvent.java index 3fafdcec1d5e..816654f438c7 100644 --- a/src/java.desktop/unix/classes/sun/awt/wl/WLPointerEvent.java +++ b/src/java.desktop/unix/classes/sun/awt/wl/WLPointerEvent.java @@ -72,7 +72,9 @@ public enum PointerButtonCodes { // see LEFT(0x110, MouseEvent.BUTTON1, InputEvent.BUTTON1_DOWN_MASK), MIDDLE(0x112, MouseEvent.BUTTON2, InputEvent.BUTTON2_DOWN_MASK), - RIGHT(0x111, MouseEvent.BUTTON3, InputEvent.BUTTON3_DOWN_MASK); + RIGHT(0x111, MouseEvent.BUTTON3, InputEvent.BUTTON3_DOWN_MASK), + SIDE(0x113, 6, InputEvent.getMaskForButton(6)), + EXTRA(0x114, 7, InputEvent.getMaskForButton(7)); public final int linuxCode; // The code from public final int javaCode; // The code from MouseEvents.BUTTONx @@ -116,6 +118,8 @@ public String toString() { case LEFT -> "left"; case MIDDLE -> "middle"; case RIGHT -> "right"; + case SIDE -> "side"; + case EXTRA -> "extra"; }; } diff --git a/src/java.desktop/unix/classes/sun/awt/wl/WLToolkit.java b/src/java.desktop/unix/classes/sun/awt/wl/WLToolkit.java index dbb6624d1df0..41fc92011634 100644 --- a/src/java.desktop/unix/classes/sun/awt/wl/WLToolkit.java +++ b/src/java.desktop/unix/classes/sun/awt/wl/WLToolkit.java @@ -133,7 +133,7 @@ public class WLToolkit extends UNIXToolkit implements Runnable { */ private static final int READ_RESULT_ERROR = 2; - private static final int MOUSE_BUTTONS_COUNT = 3; + private static final int MOUSE_BUTTONS_COUNT = 10; private static final int AWT_MULTICLICK_DEFAULT_TIME_MS = 500; private static boolean initialized = false;