From: Diederick Niehorster Date: Wed, 3 Apr 2013 11:20:56 +0000 (+0000) Subject: to check for menu opening/closing upon button press, should pass cursor position... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=4934c772982075dd265cab06d5651c80245626c4;p=freeglut to check for menu opening/closing upon button press, should pass cursor position in the window, not in the root window git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1574 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/x11/fg_main_x11.c b/src/x11/fg_main_x11.c index 0bf967d..cc57185 100644 --- a/src/x11/fg_main_x11.c +++ b/src/x11/fg_main_x11.c @@ -840,7 +840,7 @@ void fgPlatformProcessSingleEvent ( void ) * private call should be generated. */ if( fgCheckActiveMenu( window, button, pressed, - event.xbutton.x_root, event.xbutton.y_root ) ) + event.xbutton.x, event.xbutton.y ) ) break; /*