Export TouchEventRejected as TouchRejected

This function is mostly correct for early reject usage. With a small
change to pass the client resource explicitly and making the
TouchOwnership event optional, it is usable for all rejection scenarios.
This change exports it for use outside Xi/exevents.c and modifies the
name accordingly.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Chase Douglas
2012-02-03 16:19:07 -08:00
committed by Peter Hutterer
parent 19073425e5
commit 192b2c9a2e
2 changed files with 34 additions and 11 deletions

View File

@@ -323,6 +323,13 @@ SendEventToAllWindows(
xEvent * /* ev */,
int /* count */);
extern void
TouchRejected(
DeviceIntPtr /* sourcedev */,
TouchPointInfoPtr /* ti */,
XID /* resource */,
TouchOwnershipEvent * /* ev */);
extern _X_HIDDEN void XI2EventSwap(
xGenericEvent * /* from */,
xGenericEvent * /* to */);