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.
This commit is contained in:
Peter Hutterer
2007-06-27 11:16:55 +09:30
parent 49136d3e9f
commit 08779c62ba
3 changed files with 9 additions and 0 deletions

View File

@@ -106,6 +106,7 @@ CreateGrab(
grab->confineTo = confineTo;
grab->cursor = cursor;
grab->genericMasks = NULL;
grab->next = NULL;
if (cursor)
cursor->refcnt++;
return grab;