diff src/video/x11/SDL_x11mouse.c @ 4553:a1af511bbbdd SDL-1.2

RedHat patch: SDL-1.2.14-xio_error-rh603984.patch
author Sam Lantinga <slouken@libsdl.org>
date Sun, 18 Jul 2010 11:24:37 -0700
parents a1b03ba2fcd0
children
line wrap: on
line diff
--- a/src/video/x11/SDL_x11mouse.c	Sun Jul 18 11:22:47 2010 -0700
+++ b/src/video/x11/SDL_x11mouse.c	Sun Jul 18 11:24:37 2010 -0700
@@ -230,6 +230,10 @@
 	char *env_override;
 	int enable_relative = 1;
 
+	/* This happens when quiting after an xio error */
+	if ( SDL_Display == NULL )
+	        return;
+
 	/* Allow the user to override the relative mouse mode.
 	   They almost never want to do this, as it seriously affects
 	   applications that rely on continuous relative mouse motion.