Find a file
Marius Gedminas 61460cf095 [RANDR] Compare only milliseconds of config time. (Bug #6502)
The timestamp transferred in the X protocol is a 32-bit number of
milliseconds.

The timestamp stored in the server is a structure that contains two fields:
months (!) and milliseconds.

When the server passes the config timestamp to the client, it discards the
months part and sends only the milliseconds part.

When the server receives the config timestamp from the client, it tries to
guess the "months" part by looking at the current time and then maybe adding
or
subtracting one.  The guess is wrong after the server has been running long
enough (several hours).

I have added two ErrorF calls around the 'if' statement that returns
RRSetConfigInvalidConfigTimestamp in randr/randr.c and my Xorg.0.log has
this:

  randr request got good config time: 0:-2103495671

for the first few successful xrandr calls, and

  randr request failed with RRSetConfigInvalidConfigTime: client passed
  1:-2103495671, server has 0:-2103495671

when it fails.  The server has been running for 8 and a half hours.

The obvious fix would be to ignore the months field and only compare the
milliseconds.
(cherry picked from commit 0dc2bb6101)
2007-09-04 11:18:02 -07:00
afb Death to RCS tags. 2007-06-29 14:06:52 -04:00
cfb Death to RCS tags. 2007-06-29 14:06:52 -04:00
cfb32 get rid of XFree86LOADER, XFree86Server, XFree86Module, and IN_MODULE 2006-07-18 18:17:38 -04:00
composite Don't fail compScreenInit if the driver added its own alternate visuals. 2007-07-31 14:23:58 -07:00
config config: fix default xkb model (pc105, not keyboard) 2007-08-21 18:19:24 +02:00
damageext Death to RCS tags. 2007-06-29 14:06:52 -04:00
dbe Death to RCS tags. 2007-06-29 14:06:52 -04:00
dix Remove an extra cast. 2007-08-31 10:00:10 -07:00
doc Move SecurityPolicy file format from Xserver(1) to it's own man page 2007-02-22 14:38:40 -08:00
exa EXA: Fix a couple of logic errors in exaGetPixmapFirstPixel. 2007-08-23 12:21:24 -07:00
fb Require pixman 0.9.5; Use pixman_image_set_source_clipping() to fix 2007-08-23 12:19:28 -07:00
GL glx: fix crash when freeing visuals 2007-08-23 12:23:01 -07:00
hw Remove backend.[ch] from neomagic to fix distcheck. 2007-08-31 18:28:34 -07:00
include Require pixman-1 0.9.4, update pixman includes to new scheme 2007-08-06 19:00:59 -04:00
mfb Death to RCS tags. 2007-06-29 14:06:52 -04:00
mi Require pixman-1 0.9.4, update pixman includes to new scheme 2007-08-06 19:00:59 -04:00
miext Death to RCS tags. 2007-06-29 14:06:52 -04:00
os Bug #7186: Fix an excessive request size limitation that broke big-requests. 2007-08-31 15:54:11 -07:00
randr [RANDR] Compare only milliseconds of config time. (Bug #6502) 2007-09-04 11:18:02 -07:00
record Death to RCS tags. 2007-06-29 14:06:52 -04:00
render Bug #7364: Require renderproto 0.9.3 on 64-bit, and fix build with it. 2007-08-31 15:58:16 -07:00
Xext Fix the value comparisons in the IDLETIME wakeup handler. 2007-08-14 22:47:49 +02:00
xfixes Death to RCS tags. 2007-06-29 14:06:52 -04:00
Xi Input: Don't enable devices when we open them 2007-08-01 03:33:06 +03:00
xkb Fix MEMORY SMASH in XkbCopyKeymap. 2007-07-04 23:38:27 -07:00
XTrap Death to RCS tags. 2007-06-29 14:06:52 -04:00
.gitignore gitignore: Add automake lex/yacc wrapper 2007-08-01 01:53:30 +03:00
acinclude.m4 Include comment/copyright/license for AC_DEFINE_DIR in acinclude.m4 2007-07-25 17:42:23 -07:00
autogen.sh Use canonical autogen.sh, which supports srcdir != objdir autogen. 2005-07-01 21:13:36 +00:00
configure.ac Bump version to 1.3.99.2. 2007-08-31 20:02:52 -07:00
COPYING Add proper COPYING file 2007-08-01 08:07:08 +03:00
cpprules.in For MANDEFS, also replace __mandir__ for $(mandir) which includes 2006-12-08 15:51:44 -06:00
Makefile.am Generate ChangeLog file for make dist. 2007-07-10 21:33:54 -07:00
xorg-server.m4 Add xorg-server.m4 for driver dependency checking. 2005-11-01 15:01:51 +00:00
xorg-server.pc.in Fix driver build after pixman changes. 2007-08-07 09:01:24 -07:00