summaryrefslogtreecommitdiff
path: root/dix/grabs.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-06-27 11:16:55 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-06-27 11:58:20 +0930
commit08779c62ba2f4cbfa47e3cf738daf8abd74b60cf (patch)
tree7cc3def2a1808b14a18f5e3a20ee1d544668cdf4 /dix/grabs.c
parent49136d3e9fe2d065090ee90c18a49f65fb027c9f (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.c1
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;