From 4934c772982075dd265cab06d5651c80245626c4 Mon Sep 17 00:00:00 2001 From: Diederick Niehorster Date: Wed, 3 Apr 2013 11:20:56 +0000 Subject: [PATCH] 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 --- src/x11/fg_main_x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; /* -- 1.7.10.4