Mercurial > sdl-ios-xcode
changeset 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 | a5865d4b6495 |
children | 4deaba8b1b42 |
files | src/video/x11/SDL_x11mouse.c src/video/x11/SDL_x11wm.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
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.