Init genericMasks to 0, make sure list is NULL terminated.
This commit is contained in:
parent
c4e850a781
commit
8396bf7c8b
|
@ -1169,6 +1169,7 @@ CheckDeviceGrabAndHintWindow(WindowPtr pWin, int type,
|
||||||
tempGrab.pointerMode = GrabModeAsync;
|
tempGrab.pointerMode = GrabModeAsync;
|
||||||
tempGrab.confineTo = NullWindow;
|
tempGrab.confineTo = NullWindow;
|
||||||
tempGrab.cursor = NullCursor;
|
tempGrab.cursor = NullCursor;
|
||||||
|
tempGrab.genericMasks = NULL;
|
||||||
(*dev->deviceGrab.ActivateGrab) (dev, &tempGrab, currentTime, TRUE);
|
(*dev->deviceGrab.ActivateGrab) (dev, &tempGrab, currentTime, TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5912,6 +5912,7 @@ ExtGrabDevice(ClientPtr client,
|
||||||
last->next = xcalloc(1, sizeof(GenericMaskRec));
|
last->next = xcalloc(1, sizeof(GenericMaskRec));
|
||||||
last = last->next;
|
last = last->next;
|
||||||
*last = *ge_masks;
|
*last = *ge_masks;
|
||||||
|
last->next = NULL;
|
||||||
ge_masks = ge_masks->next;
|
ge_masks = ge_masks->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue