src/video/x11/SDL_x11video.c
changeset 1784 45669d4efd02
parent 1783 c546353b1ad4
child 1863 0e44c6f90b95
     1.1 --- a/src/video/x11/SDL_x11video.c	Mon May 08 06:38:13 2006 +0000
     1.2 +++ b/src/video/x11/SDL_x11video.c	Mon May 08 06:54:20 2006 +0000
     1.3 @@ -545,8 +545,8 @@
     1.4  	X11_SaveVidModeGamma(this);
     1.5  
     1.6  	/* Save DPMS and screensaver settings */
     1.7 -	X11_SaveScreenSaver(this);
     1.8 -	X11_DisableScreenSaver(this);
     1.9 +	X11_SaveScreenSaver(SDL_Display, &screensaver_timeout, &dpms_enabled);
    1.10 +	X11_DisableScreenSaver(SDL_Display);
    1.11  
    1.12  	/* See if we have been passed a window to use */
    1.13  	SDL_windowid = SDL_getenv("SDL_WINDOWID");
    1.14 @@ -1375,7 +1375,7 @@
    1.15  		}
    1.16  
    1.17  		/* Restore DPMS and screensaver settings */
    1.18 -		X11_RestoreScreenSaver(this);
    1.19 +		X11_RestoreScreenSaver(SDL_Display, screensaver_timeout, dpms_enabled);
    1.20  
    1.21  		/* Free that blank cursor */
    1.22  		if ( SDL_BlankCursor != NULL ) {