X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffreeglut_main.c;h=c28658f35bd795f94307f1c79ade3dcd476be85c;hb=8756c552d99adeed03a7bdd7c8b0da8c77f5c475;hp=cc2aca015100bb02e11ab800545117936fee00a8;hpb=7f224f1db5d7de7d2bce31c763d5eb8731fda6e7;p=freeglut diff --git a/src/freeglut_main.c b/src/freeglut_main.c index cc2aca0..c28658f 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -568,12 +568,6 @@ void FGAPIENTRY glutMainLoopEvent( void ) */ switch( event.type ) { - case CreateNotify: - /* - * The window creation confirmation - */ - break; - case DestroyNotify: /* * This is sent to confirm the XDestroyWindow call. @@ -619,6 +613,19 @@ void FGAPIENTRY glutMainLoopEvent( void ) fghRedrawWindowByHandle( event.xexpose.window ); break; + /* + * CreateNotify causes a configure-event so that sub-windows are + * handled compatibly with GLUT. + * + * NOTE that it is possible that you will more than one Reshape + * event for your top-level window, but something like this appears + * to be required for compatbility. + * + * GLUT presumably does this because it generally tries to treat + * sub-windows the same as windows. + * + */ + case CreateNotify: case ConfigureNotify: /* * The window gets resized