dix: check for core event to determine if grab is a core grab (CreateGrab).

Checking for VCP/VCK is simply not a safe way to check if a grab is a core grab.
This commit is contained in:
Peter Hutterer 2007-08-07 10:49:33 +09:30
parent 9eddede039
commit a0b87f87fb

View File

@ -87,8 +87,7 @@ CreateGrab(
return (GrabPtr)NULL;
grab->resource = FakeClientID(client);
grab->device = device;
grab->coreGrab = ((device == inputInfo.keyboard) ||
(device == inputInfo.pointer));
grab->coreGrab = (type < LASTEvent);
grab->window = window;
grab->eventMask = eventMask;
grab->deviceMask = 0;