From cdbe16ea96c0831f1f5e2d2230bef9389c819219 Mon Sep 17 00:00:00 2001 From: BryceMehring Date: Sun, 22 Feb 2015 22:14:24 -0600 Subject: [PATCH] Fixed mouse button mismatch in x11 introduced via 4d146cb39dd2e08a7df7fea97d01c6f1a1d5a98e. --- src/x11_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }