From a0b87f87fb8753955505958bf3d438eef191302d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 7 Aug 2007 10:49:33 +0930 Subject: 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. --- dix/grabs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dix/grabs.c b/dix/grabs.c index af471ebb3..9150c3c14 100644 --- a/dix/grabs.c +++ b/dix/grabs.c @@ -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; -- cgit v1.2.3