From 87419fbacc537652ca91612225bf8f075f38211a Mon Sep 17 00:00:00 2001 From: Jeff Teunissen Date: Sat, 1 Jan 2000 12:31:54 +0000 Subject: [PATCH] Fixed my slight GLX screwup with _windowed_mouse -- thanks to Marcus Sundberg for supplying patch. --- common/gl_vidlinuxglx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/gl_vidlinuxglx.c b/common/gl_vidlinuxglx.c index 6762f23..b8c4856 100644 --- a/common/gl_vidlinuxglx.c +++ b/common/gl_vidlinuxglx.c @@ -41,7 +41,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. static Display *dpy = NULL; static Window win; -static Cursor cursor; +static Cursor cursor = None; static GLXContext ctx = NULL; static float old_windowed_mouse = 0; @@ -248,7 +248,9 @@ static void blank_cursor(void) static void install_grabs(void) { - blank_cursor(); + if (cursor == None){ + blank_cursor(); + } XGrabPointer(dpy, win, True,