--- ./src/video/x11/SDL_x11modes.c 2007-12-31 05:48:13.000000000 +0100 +++ ./src/video/x11/SDL_x11modes.c.new 2009-04-19 16:54:48.000000000 +0200 @@ -1017,6 +1017,7 @@ /* Save the current video mode */ if ( use_vidmode ) { SDL_NAME(XF86VidModeLockModeSwitch)(SDL_Display, SDL_Screen, True); + save_mode(this); } #endif currently_fullscreen = 1;