[Mplayer-cvslog] CVS: main/Gui/wm ws.c,1.60,1.61
Zoltan Ponekker
pontscho at mplayerhq.hu
Mon Dec 16 20:09:50 CET 2002
Update of /cvsroot/mplayer/main/Gui/wm
In directory mail:/var/tmp.root/cvs-serv17918
Modified Files:
ws.c
Log Message:
disable DPMS handling
Index: ws.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/wm/ws.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -r1.60 -r1.61
--- ws.c 11 Nov 2002 16:57:09 -0000 1.60
+++ ws.c 16 Dec 2002 19:09:34 -0000 1.61
@@ -33,6 +33,8 @@
#include <sys/ipc.h>
#include <sys/shm.h>
+#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 )
{
More information about the MPlayer-cvslog
mailing list