input: ensure various ProcUngrabKey/Buttons have the right grabtype set.

This commit is contained in:
Peter Hutterer 2009-05-04 17:30:19 +10:00
commit 59358de4b6
3 changed files with 4 additions and 0 deletions

View file

@ -5003,6 +5003,7 @@ ProcUngrabKey(ClientPtr client)
tempGrab.modifiersDetail.pMask = NULL;
tempGrab.modifierDevice = GetPairedDevice(keybd);
tempGrab.type = KeyPress;
tempGrab.grabtype = GRABTYPE_CORE;
tempGrab.detail.exact = stuff->key;
tempGrab.detail.pMask = NULL;
tempGrab.next = NULL;
@ -5197,6 +5198,7 @@ ProcUngrabButton(ClientPtr client)
tempGrab.modifierDevice = GetPairedDevice(ptr);
tempGrab.type = ButtonPress;
tempGrab.detail.exact = stuff->button;
tempGrab.grabtype = GRABTYPE_CORE;
tempGrab.detail.pMask = NULL;
tempGrab.next = NULL;