diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-06-27 11:16:55 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-06-27 11:58:20 +0930 |
commit | 08779c62ba2f4cbfa47e3cf738daf8abd74b60cf (patch) | |
tree | 7cc3def2a1808b14a18f5e3a20ee1d544668cdf4 /dix/grabs.c | |
parent | 49136d3e9fe2d065090ee90c18a49f65fb027c9f (diff) |
Reset grab->next to NULL when we're creating a grab.
This is definitely necessary in CheckDeviceGrabAndHintWindow (thanks to Paulo
Zanoni for spotting it). We're resetting it everywhere else too, just to be
save.
Diffstat (limited to 'dix/grabs.c')
-rw-r--r-- | dix/grabs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dix/grabs.c b/dix/grabs.c index e1dd6c546..af471ebb3 100644 --- a/dix/grabs.c +++ b/dix/grabs.c @@ -106,6 +106,7 @@ CreateGrab( grab->confineTo = confineTo; grab->cursor = cursor; grab->genericMasks = NULL; + grab->next = NULL; if (cursor) cursor->refcnt++; return grab; |