# HG changeset patch # User diego # Date 1079414144 0 # Node ID 0c2b8b731d421ae7ecf280e60d8fa6dbd530a3fd # Parent f95452116211fb7641669a45b41439741a14e654 Use system clock for xscreensaver pings (Tobias Diedrich). diff -r f95452116211 -r 0c2b8b731d42 libvo/x11_common.c --- a/libvo/x11_common.c Mon Mar 15 15:29:15 2004 +0000 +++ b/libvo/x11_common.c Tue Mar 16 05:15:44 2004 +0000 @@ -18,6 +18,7 @@ #include "video_out.h" #include "aspect.h" #include "help_mp.h" +#include "../osdep/timer.h" #include #include @@ -1142,14 +1143,15 @@ static Atom deactivate; static Atom screensaver; -static float time_last; +static unsigned int time_last; -void xscreensaver_heartbeat(float time) +void xscreensaver_heartbeat(void) { + unsigned int time = GetTimerMS(); XEvent ev; if (mDisplay && xs_windowid && - ((time - time_last)>30 || + ((time - time_last)>30000 || (time - time_last)<0)) { time_last = time;