From 34a43b6ae5ca8ec10a5b9d9437a11c49daea736d Mon Sep 17 00:00:00 2001 From: rkrolib Date: Wed, 24 Sep 2003 06:26:36 +0000 Subject: [PATCH] Corrected a bug w.r.t. display and joystick events. When getting ready to sleep, we need to go through ALL windows to check for pending joysticks and to check for pending redisplays. I was just going through all TOP- LEVEL windows. Eeek. This won't do. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@205 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freeglut/freeglut/src/freeglut_main.c b/freeglut/freeglut/src/freeglut_main.c index 0c90e21..21daa87 100644 --- a/freeglut/freeglut/src/freeglut_main.c +++ b/freeglut/freeglut/src/freeglut_main.c @@ -445,6 +445,7 @@ static void fgCheckJoystickCallback( SFG_Window* w, SFG_Enumerator* e) e->found = TRUE; e->data = w; } + fgEnumSubWindows( w, fgCheckJoystickCallback, e ); } static int fgHaveJoystick( void ) { @@ -461,6 +462,7 @@ static void fgHavePendingRedisplaysCallback( SFG_Window* w, SFG_Enumerator* e) e->found = TRUE; e->data = w; } + fgEnumSubWindows( w, fgHavePendingRedisplaysCallback, e ); } static int fgHavePendingRedisplays (void) {