Xi: reset the known properties at the end of the server generation.
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 7 May 2010 06:22:12 +0000 (16:22 +1000)
committerKeith Packard <keithp@keithp.com>
Fri, 7 May 2010 19:16:43 +0000 (12:16 -0700)
commit9802839d35aaf788790f1d0e8300db4693a70096
treec96fdcfcba403c02bf225a3142959c0b4e345125
parent72758287f79a4f1aa8fa388f20947042e3e14693
Xi: reset the known properties at the end of the server generation.

Properties allocated through XIGetKnownProperty() aren't reset on the second
server generation but keep the old value. As a result, wrong Atoms are
supplied to the driver, resulting in potential data corruption or weird
error message.

Reproducible by running "xlsatom | grep FLOAT" twice on a plain X server.
The second X server generation won't have the FLOAT atom defined anymore,
despite the users of this atom not noticing any errors.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
Xi/extinit.c
Xi/xiproperty.c
Xi/xiproperty.h