comparison 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
comparison
equal deleted inserted replaced
4551:a5865d4b6495 4553:a1af511bbbdd
228 { 228 {
229 const Uint8 full_focus = (SDL_APPACTIVE|SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS); 229 const Uint8 full_focus = (SDL_APPACTIVE|SDL_APPINPUTFOCUS|SDL_APPMOUSEFOCUS);
230 char *env_override; 230 char *env_override;
231 int enable_relative = 1; 231 int enable_relative = 1;
232 232
233 /* This happens when quiting after an xio error */
234 if ( SDL_Display == NULL )
235 return;
236
233 /* Allow the user to override the relative mouse mode. 237 /* Allow the user to override the relative mouse mode.
234 They almost never want to do this, as it seriously affects 238 They almost never want to do this, as it seriously affects
235 applications that rely on continuous relative mouse motion. 239 applications that rely on continuous relative mouse motion.
236 */ 240 */
237 env_override = SDL_getenv("SDL_MOUSE_RELATIVE"); 241 env_override = SDL_getenv("SDL_MOUSE_RELATIVE");