summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-12-03 11:55:13 +1000
committerPeter Hutterer <peter.hutterer@redhat.com>2008-12-03 16:10:40 +1000
commite670fd889607fa712876218882cd4a9b46937661 (patch)
treebd0153358ad1eacb7039b264b829d070a9608c0e
parent85d84c7cf2d368d1803dc2cdd03d6c9df8cc0430 (diff)
dix: fix GetMaximumEventsNum(), may return a DCCE event too.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
-rw-r--r--dix/getevents.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dix/getevents.c b/dix/getevents.c
index 1671a2411..88299b04e 100644
--- a/dix/getevents.c
+++ b/dix/getevents.c
@@ -486,6 +486,9 @@ GetMaximumEventsNum(void) {
#endif
ret *= 2;
+ /* One possible DeviceClassesChangedEvent */
+ ret++;
+
return ret;
}