mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-19 00:51:16 +00:00
Move input event list initialisation and storage from DDX to DIX.
Rather than letting the DDX allocate the events, allocate them once in the DIX
and just pass it around when needed.
DDX should call GetEventList() to obtain this list and then pass it into
Get{Pointer|Keyboard}Events.
This commit is contained in:
parent
09a8fc5c7a
commit
3fe64d8d27
5 changed files with 30 additions and 34 deletions
|
|
@ -5711,6 +5711,10 @@ InitEvents(void)
|
|||
DontPropagateMasks[i] = 0;
|
||||
DontPropagateRefCnts[i] = 0;
|
||||
}
|
||||
|
||||
InputEventList = InitEventList(GetMaximumEventsNum());
|
||||
if (!InputEventList)
|
||||
FatalError("[dix] Failed to allocate input event list.\n");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue