mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 10:27:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user