diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-03 10:10:46 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-02-19 15:52:35 +1030 |
commit | 77dba004a9aaf35f183f61ff6875a491a52aa030 (patch) | |
tree | 5e8d04ebc4f2094ef9f5923c311865da2212b0da /dix/events.c | |
parent | 3fe64d8d271aea0863bf01b0376f3eceec0c90b5 (diff) |
dix: add InputEventListLen and SetMinimumEventSize
The latter is used to increase the amount of allocated memory for the event
list. This will be needed for ClassesChangedEvents that can be of more or less
arbitrary size (larger than 32 anyway).
Diffstat (limited to 'dix/events.c')
-rw-r--r-- | dix/events.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c index 1155178b1..bf2df9f44 100644 --- a/dix/events.c +++ b/dix/events.c @@ -5712,7 +5712,8 @@ InitEvents(void) DontPropagateRefCnts[i] = 0; } - InputEventList = InitEventList(GetMaximumEventsNum()); + InputEventListLen = GetMaximumEventsNum(); + InputEventList = InitEventList(InputEventListLen); if (!InputEventList) FatalError("[dix] Failed to allocate input event list.\n"); } |