Removed redundant code.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@669 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2005-07-06 16:06:05 +00:00
parent e3f40841b6
commit 56a37333b9
2 changed files with 3 additions and 9 deletions

View File

@ -1103,3 +1103,5 @@ anymore, fixing a space leak. Not perfect for menus yet...
(286) X11 only: Destroy the global menu rendering context when (286) X11 only: Destroy the global menu rendering context when
deinitializing. The visual/context handling for menus is still rather deinitializing. The visual/context handling for menus is still rather
obscure, though... obscure, though...
(287) Removed redundant code.

View File

@ -1085,7 +1085,6 @@ void FGAPIENTRY glutMainLoopEvent( void )
case UnmapNotify: case UnmapNotify:
/* We get this when iconifying a window. */ /* We get this when iconifying a window. */
GETWINDOW( xunmap ); GETWINDOW( xunmap );
fgSetWindow( window );
INVOKE_WCB( *window, WindowStatus, ( GLUT_HIDDEN ) ); INVOKE_WCB( *window, WindowStatus, ( GLUT_HIDDEN ) );
window->State.Visible = GL_FALSE; window->State.Visible = GL_FALSE;
break; break;
@ -1100,14 +1099,6 @@ void FGAPIENTRY glutMainLoopEvent( void )
case VisibilityNotify: case VisibilityNotify:
{ {
GETWINDOW( xvisibility );
/*
* XXX INVOKE_WCB() does this check for us.
*/
if( ! FETCH_WCB( *window, WindowStatus ) )
break;
fgSetWindow( window );
/* /*
* Sending this event, the X server can notify us that the window * Sending this event, the X server can notify us that the window
* has just acquired one of the three possible visibility states: * has just acquired one of the three possible visibility states:
@ -1116,6 +1107,7 @@ void FGAPIENTRY glutMainLoopEvent( void )
* VisibilityNotify event when iconifying a window, we only get an * VisibilityNotify event when iconifying a window, we only get an
* UnmapNotify then. * UnmapNotify then.
*/ */
GETWINDOW( xvisibility );
switch( event.xvisibility.state ) switch( event.xvisibility.state )
{ {
case VisibilityUnobscured: case VisibilityUnobscured: