xkb: extract the correct device in XkbFilterEvents.

If the event is an XI event, we need to work on the correct device, not on
the VCK.

Adds XIGetDevice(event) function to extract the device from an event.
This commit is contained in:
Peter Hutterer 2008-11-03 11:30:48 +10:30
commit de1a8b68eb
3 changed files with 42 additions and 0 deletions

View file

@ -249,4 +249,6 @@ extern Atom XIGetKnownProperty(
char* name
);
extern DeviceIntPtr XIGetDevice(xEvent *ev);
#endif /* EXEVENTS_H */