# HG changeset patch # User pontscho # Date 1040065774 0 # Node ID 7988573021e8fa11663de6b865a3aa73180b83e4 # Parent b5dce4fa1c4821bb98bd5c727fbde7dbec59346f disable DPMS handling diff -r b5dce4fa1c48 -r 7988573021e8 Gui/wm/ws.c --- a/Gui/wm/ws.c Mon Dec 16 17:05:49 2002 +0000 +++ b/Gui/wm/ws.c Mon Dec 16 19:09:34 2002 +0000 @@ -33,6 +33,8 @@ #include #include +#define ENABLE_DPMS 0 + typedef struct { unsigned long flags; @@ -869,7 +871,9 @@ win->Height=win->OldHeight; win->isFullScreen=False; decoration=win->Decorations; +#ifdef ENABLE_DPMS wsScreenSaverOn( wsDisplay ); +#endif } else { @@ -878,7 +882,9 @@ win->X=0; win->Y=0; win->Width=wsMaxX; win->Height=wsMaxY; win->isFullScreen=True; +#ifdef ENABLE_DPMS wsScreenSaverOff( wsDisplay ); +#endif } win->SizeHint.flags=PPosition | PSize | PWinGravity;// | PBaseSize; @@ -1280,6 +1286,7 @@ void wsSetMousePosition( wsTWindow * win,int x, int y ) { XWarpPointer( wsDisplay,wsRootWin,win->WindowID,0,0,0,0,x,y ); } +#ifdef ENABLE_DPMS static int dpms_disabled=0; static int timeout_save=0; @@ -1335,6 +1342,7 @@ XGetScreenSaver( mDisplay,&timeout_save,&interval,&prefer_blank,&allow_exp ); if ( timeout_save ) XSetScreenSaver( mDisplay,0,interval,prefer_blank,allow_exp ); // turning off screensaver } +#endif void wsSetShape( wsTWindow * win,char * data ) {