Skip to content

Commit

Permalink
RedHat patch: SDL-1.2.14-xio_error-rh603984.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 18, 2010
1 parent e17ccd7 commit 0953767
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/video/x11/SDL_x11mouse.c
Expand Up @@ -230,6 +230,10 @@ void X11_CheckMouseModeNoLock(_THIS)
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.
Expand Down
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11wm.c
Expand Up @@ -329,7 +329,7 @@ SDL_GrabMode X11_GrabInputNoLock(_THIS, SDL_GrabMode mode)
{
int result;

if ( this->screen == NULL ) {
if ( this->screen == NULL || SDL_Display == NULL ) {
return(SDL_GRAB_OFF);
}
if ( ! SDL_Window ) {
Expand Down

0 comments on commit 0953767

Please sign in to comment.