diff --git a/src/x11_window.c b/src/x11_window.c index ad9edf79f..b88691ef0 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -1049,7 +1049,7 @@ static void processEvent(XEvent *event) // Additional buttons after 7 are treated as regular buttons // We subtract 4 to fill the gap left by scroll input above _glfwInputMouseClick(window, - event->xbutton.button - 4, + event->xbutton.button - Button1 - 4, GLFW_RELEASE, mods); }