Forráskód Böngészése

Fixed X11 mouse button mismatch.

Bug introduced by 4d146cb39d.

Closes #449.
BryceMehring 10 éve
szülő
commit
c43f082993
2 módosított fájl, 2 hozzáadás és 1 törlés
  1. 1 0
      README.md
  2. 1 1
      src/x11_window.c

+ 1 - 0
README.md

@@ -147,6 +147,7 @@ skills.
  - Hans Mackowiak
  - Hans Mackowiak
  - Kyle McDonald
  - Kyle McDonald
  - David Medlock
  - David Medlock
+ - Bryce Mehring
  - Jonathan Mercier
  - Jonathan Mercier
  - Marcel Metz
  - Marcel Metz
  - Jonathan Miller
  - Jonathan Miller

+ 1 - 1
src/x11_window.c

@@ -1049,7 +1049,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_RELEASE,
                                      GLFW_RELEASE,
                                      mods);
                                      mods);
             }
             }