mi: split EQ popping and event processing into two functions.

mieqProcessInputEvents() - pop an event off the EQ and pass it to
mieqProcessDeviceEvent() - process the event according to the MD/SD hierarchy.

This way, we can use mieqPDE() from Xtest, xkb, and others to post an event.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-02-10 12:45:49 +10:00
commit 36583a4996
3 changed files with 62 additions and 41 deletions

View file

@ -211,6 +211,12 @@ extern _X_EXPORT void mieqSwitchScreen(
Bool /*fromDIX*/
);
extern _X_EXPORT void mieqProcessDeviceEvent(
DeviceIntPtr /* dev*/,
InternalEvent* /* event */,
ScreenPtr /* screen*/
);
extern _X_EXPORT void mieqProcessInputEvents(
void
);