changeset 4566:3b1721b9e211

fix dpsm compile bug in gui
author pontscho
date Thu, 07 Feb 2002 12:27:19 +0000
parents be1562b2c2d0
children a7f2c58a9ab1
files Gui/wm/ws.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/wm/ws.c	Thu Feb 07 12:07:47 2002 +0000
+++ b/Gui/wm/ws.c	Thu Feb 07 12:27:19 2002 +0000
@@ -1162,6 +1162,7 @@
 void wsScreenSaverOn( Display *mDisplay )
 {
  int nothing;
+#ifdef HAVE_XDPMS
  if ( dpms_disabled )
   {
    if ( DPMSQueryExtension( mDisplay,&nothing,&nothing ) )
@@ -1178,7 +1179,7 @@
        }
     }
   }
-
+#endif
  if ( timeout_save )
   {
    int dummy, interval, prefer_blank, allow_exp;
@@ -1191,7 +1192,7 @@
 void wsScreenSaverOff( Display * mDisplay )
 {
  int interval,prefer_blank,allow_exp,nothing;
-
+#ifdef HAVE_XDPMS
  if ( DPMSQueryExtension( mDisplay,&nothing,&nothing ) )
   {
    BOOL onoff;
@@ -1206,6 +1207,7 @@
       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
 }