projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
give menu windows the title 'freeglut menu' (helps Chromium)
[freeglut]
/
src
/
freeglut_structure.c
diff --git
a/src/freeglut_structure.c
b/src/freeglut_structure.c
index
fe172d1
..
3b3032d
100644
(file)
--- a/
src/freeglut_structure.c
+++ b/
src/freeglut_structure.c
@@
-110,6
+110,9
@@
SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title,
window->IsMenu = isMenu;
window->IsMenu = isMenu;
+ window->State.IgnoreKeyRepeat = GL_FALSE;
+ window->State.KeyRepeating = GL_FALSE;
+
/*
* Open the window now. The fgOpenWindow() function is system
* dependant, and resides in freeglut_window.c. Uses fgState.
/*
* Open the window now. The fgOpenWindow() function is system
* dependant, and resides in freeglut_window.c. Uses fgState.
@@
-147,7
+150,7
@@
SFG_Menu* fgCreateMenu( FGCBMenu menuCallback )
* Create a window for the menu to reside in.
*/
* Create a window for the menu to reside in.
*/
- fgCreateWindow( NULL, NULL, x, y, w, h, GL_FALSE, GL_TRUE );
+ fgCreateWindow( NULL, "freeglut menu", x, y, w, h, GL_FALSE, GL_TRUE );
menu->Window = fgStructure.Window;
glutDisplayFunc( fgDisplayMenu );
menu->Window = fgStructure.Window;
glutDisplayFunc( fgDisplayMenu );