input: use a GrabMask union in GrabDevice to allow for XI2 masks.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-04-12 17:38:28 +10:00
commit c94ea5bc05
5 changed files with 27 additions and 6 deletions

View file

@ -156,6 +156,12 @@ typedef enum {
GRABTYPE_XI2
} GrabType;
union _GrabMask {
Mask core;
Mask xi;
char xi2mask[EMASKSIZE][XI2MASKSIZE];
};
/**
* Central struct for device grabs.
* The same struct is used for both core grabs and device grabs, with