mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
dix: freeing a null grab is a bug, complain if doing so
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -249,6 +249,8 @@ CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice,
|
||||
void
|
||||
FreeGrab(GrabPtr pGrab)
|
||||
{
|
||||
BUG_RETURN(!pGrab);
|
||||
|
||||
if (pGrab->grabtype == XI2 && pGrab->type == XI_TouchBegin)
|
||||
TouchListenerGone(pGrab->resource);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user