From c43f0829936203adf2e6d42d3697e43c47092a07 Mon Sep 17 00:00:00 2001 From: BryceMehring Date: Sun, 22 Feb 2015 22:14:24 -0600 Subject: [PATCH] Fixed X11 mouse button mismatch. Bug introduced by 4d146cb39d. Closes #449. --- README.md | 1 + src/x11_window.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f0980f3..df69cdf1 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,7 @@ skills. - Hans Mackowiak - Kyle McDonald - David Medlock + - Bryce Mehring - Jonathan Mercier - Marcel Metz - Jonathan Miller diff --git a/src/x11_window.c b/src/x11_window.c index ad9edf79..b88691ef 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); }