X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_main.c;h=7b53ea4c30500d998c8341e6c4663840f4a8e10f;hb=25797e0fc9db283528048a34d4e4e4b43763bd19;hp=2f95b63ef95f3fbc62681f1243e26abd301ee209;hpb=572817d19427ebb5d87b3705555a007611db63cc;p=freeglut diff --git a/src/freeglut_main.c b/src/freeglut_main.c index 2f95b63..7b53ea4 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -1085,6 +1085,7 @@ void FGAPIENTRY glutMainLoopEvent( void ) case UnmapNotify: /* We get this when iconifying a window. */ GETWINDOW( xunmap ); + fgSetWindow( window ); INVOKE_WCB( *window, WindowStatus, ( GLUT_HIDDEN ) ); window->State.Visible = GL_FALSE; break;