Fixed mouse button mismatch in x11 introduced via 4d146cb39d.

This commit is contained in:
BryceMehring 2015-02-22 22:14:24 -06:00
parent 8d910d7950
commit cdbe16ea96

View File

@ -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);
}