diff options
Diffstat (limited to 'Gui/wm')
-rw-r--r-- | Gui/wm/ws.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Gui/wm/ws.c b/Gui/wm/ws.c index c373508841..0aeb5ea25d 100644 --- a/Gui/wm/ws.c +++ b/Gui/wm/ws.c @@ -1162,6 +1162,7 @@ static int timeout_save=0; void wsScreenSaverOn( Display *mDisplay ) { int nothing; +#ifdef HAVE_XDPMS if ( dpms_disabled ) { if ( DPMSQueryExtension( mDisplay,¬hing,¬hing ) ) @@ -1178,7 +1179,7 @@ void wsScreenSaverOn( Display *mDisplay ) } } } - +#endif if ( timeout_save ) { int dummy, interval, prefer_blank, allow_exp; @@ -1191,7 +1192,7 @@ void wsScreenSaverOn( Display *mDisplay ) void wsScreenSaverOff( Display * mDisplay ) { int interval,prefer_blank,allow_exp,nothing; - +#ifdef HAVE_XDPMS if ( DPMSQueryExtension( mDisplay,¬hing,¬hing ) ) { BOOL onoff; @@ -1206,6 +1207,7 @@ void wsScreenSaverOff( Display * mDisplay ) fprintf( stderr,"stat: %d.\n",stat ); } } +#endif XGetScreenSaver( mDisplay,&timeout_save,&interval,&prefer_blank,&allow_exp ); if ( timeout_save ) XSetScreenSaver( mDisplay,0,interval,prefer_blank,allow_exp ); // turning off screensaver } |