to check for menu opening/closing upon button press, should pass cursor position...
authorDiederick Niehorster <dcnieho@gmail.com>
Wed, 3 Apr 2013 11:20:56 +0000 (11:20 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Wed, 3 Apr 2013 11:20:56 +0000 (11:20 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1574 7f0cb862-5218-0410-a997-914c9d46530a

src/x11/fg_main_x11.c

index 0bf967d..cc57185 100644 (file)
@@ -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;
 
             /*