X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_main.c;h=cc2aca015100bb02e11ab800545117936fee00a8;hb=12518ea3f1e251120bc666d2d6e8e26632b65eda;hp=c6eaa64baf48510a3c97c01c2d71c4375dfc804e;hpb=fa43a255b9778016ce78123712b8ff89efd2fb34;p=freeglut diff --git a/src/freeglut_main.c b/src/freeglut_main.c index c6eaa64..cc2aca0 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -865,7 +865,7 @@ void FGAPIENTRY glutMainLoopEvent( void ) SFG_Window *save_window = fgStructure.Window ; SFG_Menu *save_menu = fgStructure.Menu ; SFG_Window *parent_window = window->ActiveMenu->ParentWindow ; - fgSetWindow ( window ) ; + fgSetWindow ( parent_window ) ; fgStructure.Menu = window->ActiveMenu ; /* Execute the menu callback */ @@ -1643,7 +1643,7 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPara SFG_Window *save_window = fgStructure.Window ; SFG_Menu *save_menu = fgStructure.Menu ; SFG_Window *parent_window = window->ActiveMenu->ParentWindow ; - fgSetWindow ( window ) ; + fgSetWindow ( parent_window ) ; fgStructure.Menu = window->ActiveMenu ; /* Execute the menu callback */