projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab13ec1
)
check event button against GLUT_MAX_MENUS (bug 1484284)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 9 May 2006 14:51:57 +0000
(14:51 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 9 May 2006 14:51:57 +0000
(14:51 +0000)
src/glut/glx/glut_event.c
patch
|
blob
|
history
diff --git
a/src/glut/glx/glut_event.c
b/src/glut/glx/glut_event.c
index e453fe038937659b5562bdf340528b70623755b2..f997f772c70c8c8171bc5e5dc8b3785e7f93342c 100644
(file)
--- 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;