mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
Fixed hole in mouse button sequence on X11.
This commit is contained in:
parent
cf7dc1d737
commit
4d146cb39d
|
@ -68,6 +68,7 @@ GLFW bundles a number of dependencies in the `deps/` directory.
|
||||||
- [X11] Added support for Cygwin-X
|
- [X11] Added support for Cygwin-X
|
||||||
- [X11] Made XInput2 optional at compile-time
|
- [X11] Made XInput2 optional at compile-time
|
||||||
- [X11] Made Xxf86vm optional at compile-time
|
- [X11] Made Xxf86vm optional at compile-time
|
||||||
|
- [X11] Bugfix: Mouse button `GLFW_MOUSE_BUTTON_4` was never used
|
||||||
- [X11] Bugfix: `glfwTerminate` could close an unrelated file descriptor
|
- [X11] Bugfix: `glfwTerminate` could close an unrelated file descriptor
|
||||||
- [X11] Bugfix: Some WMs did not respect cursor redefinition
|
- [X11] Bugfix: Some WMs did not respect cursor redefinition
|
||||||
|
|
||||||
|
|
|
@ -1011,7 +1011,7 @@ static void processEvent(XEvent *event)
|
||||||
// Additional buttons after 7 are treated as regular buttons
|
// Additional buttons after 7 are treated as regular buttons
|
||||||
// We subtract 4 to fill the gap left by scroll input above
|
// We subtract 4 to fill the gap left by scroll input above
|
||||||
_glfwInputMouseClick(window,
|
_glfwInputMouseClick(window,
|
||||||
event->xbutton.button - 4,
|
event->xbutton.button - Button1 - 4,
|
||||||
GLFW_PRESS,
|
GLFW_PRESS,
|
||||||
mods);
|
mods);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user