diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-07-06 17:00:20 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-07-10 10:09:44 +0930 |
commit | 62efc3951a96648cf975302aa6651cb67b87fa64 (patch) | |
tree | bef71298acba1afbaf8caf2d827759a4b4252663 /dix/events.c | |
parent | 3312e4dd5e055b2cb445b5d5c617aa7a611eedc1 (diff) |
DeliverGrabbedEvent: stop segfault when gemask == NULL.
Diffstat (limited to 'dix/events.c')
-rw-r--r-- | dix/events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/events.c b/dix/events.c index 9a6ab33f6..8fcbec76a 100644 --- a/dix/events.c +++ b/dix/events.c @@ -3283,7 +3283,7 @@ DeliverGrabbedEvent(xEvent *xE, DeviceIntPtr thisDev, xGenericEvent* ge = ((xGenericEvent*)xE); GenericMaskPtr gemask = grab->genericMasks; - if (!gemask->eventMask[GEEXTIDX(ge)]) + if (!gemask || !gemask->eventMask[GEEXTIDX(ge)]) return; if (GEEventFill(xE)) |