summaryrefslogtreecommitdiff
path: root/Xi/grabdev.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-05-14 10:42:03 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-05-14 10:42:03 +0930
commit4dc973f08c54294e06bc831bd2839fd3aa24ecfb (patch)
tree6ff55d0c818f912507e2be426559b327cdf60e64 /Xi/grabdev.c
parentcb22bdbe678a9948eda75d464d6701a729664ef0 (diff)
Add ExtendedGrabDevice handling.
Add XGE handling in DeliverGrabbedEvent. We can now grab something selecting XGE events, but the current code is a bit messy and doesn't work too well yet.
Diffstat (limited to 'Xi/grabdev.c')
-rw-r--r--Xi/grabdev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Xi/grabdev.c b/Xi/grabdev.c
index 143b98c73..f3349ba8c 100644
--- a/Xi/grabdev.c
+++ b/Xi/grabdev.c
@@ -155,6 +155,13 @@ ProcXGrabDevice(ClientPtr client)
*
* This procedure creates an event mask from a list of XEventClasses.
*
+ * Procedure is as follows:
+ * An XEventClass is (deviceid << 8 | eventtype). For each entry in the list,
+ * get the device. Then run through all available event indices (those are
+ * set when XI starts up) and binary OR's the device's mask to whatever the
+ * event mask for the given event type was.
+ *
+ * mask has to be size EMASKSIZE and pre-allocated.
*/
int