mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
input: remove DDX event list handling
The current approach to event posting required the DDX to request the event list (allocated by the DIX) and then pass that list into QueuePointerEvent and friends. Remove this step and use the DIX event list directly. This means that QueuePointerEvent is not reentrant but it wasn't before anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
8670c46bdf
commit
20fb07f436
14 changed files with 46 additions and 101 deletions
|
|
@ -111,7 +111,6 @@ typedef struct _ValuatorMask ValuatorMask;
|
|||
|
||||
/* The DIX stores incoming input events in this list */
|
||||
extern InternalEvent* InputEventList;
|
||||
extern int InputEventListLen;
|
||||
|
||||
typedef int (*DeviceProc)(
|
||||
DeviceIntPtr /*device*/,
|
||||
|
|
@ -429,7 +428,6 @@ extern _X_EXPORT void CloseInput(void);
|
|||
|
||||
extern _X_EXPORT int GetMaximumEventsNum(void);
|
||||
|
||||
extern _X_EXPORT int GetEventList(InternalEvent** list);
|
||||
extern _X_EXPORT InternalEvent *InitEventList(int num_events);
|
||||
extern _X_EXPORT void FreeEventList(InternalEvent *list, int num_events);
|
||||
|
||||
|
|
@ -452,7 +450,6 @@ extern _X_EXPORT int GetPointerEvents(
|
|||
const ValuatorMask *mask);
|
||||
|
||||
extern _X_EXPORT void QueuePointerEvents(
|
||||
InternalEvent *events,
|
||||
DeviceIntPtr pDev,
|
||||
int type,
|
||||
int buttons,
|
||||
|
|
@ -467,7 +464,6 @@ extern _X_EXPORT int GetKeyboardEvents(
|
|||
const ValuatorMask *mask);
|
||||
|
||||
extern _X_EXPORT void QueueKeyboardEvents(
|
||||
InternalEvent *events,
|
||||
DeviceIntPtr pDev,
|
||||
int type,
|
||||
int key_code,
|
||||
|
|
@ -480,7 +476,6 @@ extern int GetProximityEvents(
|
|||
const ValuatorMask *mask);
|
||||
|
||||
extern void QueueProximityEvents(
|
||||
InternalEvent *events,
|
||||
DeviceIntPtr pDev,
|
||||
int type,
|
||||
const ValuatorMask *mask);
|
||||
|
|
|
|||
Loading…
Reference in a new issue