summaryrefslogtreecommitdiff
path: root/src/glut/glx
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-05-09 14:51:57 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-05-09 14:51:57 +0000
commit2b3aab071760c15abfbd99c070cf368d715e5173 (patch)
treeca2730ae6a49b3ca69abb5ea8829826ed5127f08 /src/glut/glx
parentab13ec10ebd6f35286db93752739246076e0edb9 (diff)
check event button against GLUT_MAX_MENUS (bug 1484284)
Diffstat (limited to 'src/glut/glx')
-rw-r--r--src/glut/glx/glut_event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glut/glx/glut_event.c b/src/glut/glx/glut_event.c
index e453fe0389..f997f772c7 100644
--- a/src/glut/glx/glut_event.c
+++ b/src/glut/glx/glut_event.c
@@ -438,7 +438,8 @@ processEventsAndTimeouts(void)
__glutFinishMenu(event.xbutton.window, event.xbutton.x, event.xbutton.y);
} else {
window = __glutGetWindow(event.xbutton.window);
- if (window) {
+ /* added button check for mice with > 3 buttons */
+ if (window && event.xbutton.button <= GLUT_MAX_MENUS) {
GLUTmenu *menu;
int menuNum;