[Mplayer-cvslog] CVS: main/libvo x11_common.c,1.163,1.164
Gabucino
syncmail at mplayerhq.hu
Sat Mar 13 00:27:48 CET 2004
CVS change done by Gabucino
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv23489
Modified Files:
x11_common.c
Log Message:
Recommit relevant parts of two previous patches after recent immense CVS
fuckup.
Use system clock for xscreensaver pings (Tobias Diedrich)
dont mess with the window position in xinerama when -geometry changes it. (Attila Kinali)
Index: x11_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/x11_common.c,v
retrieving revision 1.163
retrieving revision 1.164
diff -u -r1.163 -r1.164
--- x11_common.c 24 Feb 2004 18:17:05 -0000 1.163
+++ x11_common.c 12 Mar 2004 23:27:46 -0000 1.164
@@ -17,7 +17,9 @@
#include "video_out.h"
#include "aspect.h"
+#include "geometry.h"
#include "help_mp.h"
+#include "../osdep/timer.h"
#include <X11/Xmd.h>
#include <X11/Xlib.h>
@@ -1142,14 +1144,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;
@@ -1311,7 +1314,7 @@
#ifdef HAVE_XINERAMA
void vo_x11_xinerama_move(Display *dsp, Window w)
{
- if(XineramaIsActive(dsp))
+ if(XineramaIsActive(dsp) && ! geometry_xy_changed)
{
/* printf("XXXX Xinerama screen: x: %hd y: %hd\n",xinerama_x,xinerama_y); */
XMoveWindow(dsp,w,xinerama_x,xinerama_y);
More information about the MPlayer-cvslog
mailing list