diff --git a/src/native/linux/org_lwjgl_input_Mouse.cpp b/src/native/linux/org_lwjgl_input_Mouse.cpp index c99224d7..ca85b6a0 100644 --- a/src/native/linux/org_lwjgl_input_Mouse.cpp +++ b/src/native/linux/org_lwjgl_input_Mouse.cpp @@ -234,10 +234,10 @@ void handleButtonRelease(XButtonEvent *event) { buttons[0] = JNI_FALSE; break; case Button2: - buttons[1] = JNI_FALSE; + buttons[2] = JNI_FALSE; break; case Button3: - buttons[2] = JNI_FALSE; + buttons[1] = JNI_FALSE; break; case Button4: /* Fall through */ case Button5: