# HG changeset patch # User Sam Lantinga # Date 1279477477 25200 # Node ID a1af511bbbdd849c9c02ba2bcf930a0e5c203c37 # Parent a5865d4b64956cf7010d8d4c5fcc97d9d2efcbef RedHat patch: SDL-1.2.14-xio_error-rh603984.patch diff -r a5865d4b6495 -r a1af511bbbdd src/video/x11/SDL_x11mouse.c --- 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. diff -r a5865d4b6495 -r a1af511bbbdd src/video/x11/SDL_x11wm.c --- a/src/video/x11/SDL_x11wm.c Sun Jul 18 11:22:47 2010 -0700 +++ b/src/video/x11/SDL_x11wm.c Sun Jul 18 11:24:37 2010 -0700 @@ -329,7 +329,7 @@ { int result; - if ( this->screen == NULL ) { + if ( this->screen == NULL || SDL_Display == NULL ) { return(SDL_GRAB_OFF); } if ( ! SDL_Window ) {