summaryrefslogtreecommitdiff
path: root/Xi/extinit.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-06-27 18:08:03 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-07-01 09:14:18 +0930
commitc1a16bdcfe7aa907fe78f27dc606a8e5a2699952 (patch)
tree23bb429d29cec4dd3347163c27bfbd40e7af3daa /Xi/extinit.c
parent08779c62ba2f4cbfa47e3cf738daf8abd74b60cf (diff)
Add 'evfill' field to GEExtensions.
We need this to allow extensions to fill in extra data for an event before it is sent to the client. This is probably to be used like FillUpEventsFromWindow().
Diffstat (limited to 'Xi/extinit.c')
-rw-r--r--Xi/extinit.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c
index 99518e125..70253fe82 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -1151,6 +1151,16 @@ XIGEEventSwap(xGenericEvent* from, xGenericEvent* to)
}
}
+/**
+ * EventFill to fill various fields for events before they are delivered to
+ * the client.
+ */
+static void
+XIGEEventFill(xGenericEvent* ev, DeviceIntPtr pDev,
+ WindowPtr pWin, GrabPtr grab)
+{
+}
+
/**********************************************************************
*
* IExtensionInit - initialize the input extension.
@@ -1195,7 +1205,7 @@ XInputExtensionInit(void)
EventSwapVector[DeviceLeaveNotify] = SEventIDispatch;
/* init GE events */
- GERegisterExtension(IReqCode, XIGEEventSwap);
+ GERegisterExtension(IReqCode, XIGEEventSwap, XIGEEventFill);
SetGenericFilter(IReqCode, xi_filters);
} else {
FatalError("IExtensionInit: AddExtensions failed\n");