dix: ProcChangeActivePointerGrab: make sure variable is initialised.
Thanks to Ben Close for spotting it.
This commit is contained in:
parent
14d0397cde
commit
2c1431a76e
|
@ -4808,7 +4808,7 @@ int
|
||||||
ProcChangeActivePointerGrab(ClientPtr client)
|
ProcChangeActivePointerGrab(ClientPtr client)
|
||||||
{
|
{
|
||||||
DeviceIntPtr device, grabbed;
|
DeviceIntPtr device, grabbed;
|
||||||
GrabPtr grab = device->deviceGrab.grab;
|
GrabPtr grab;
|
||||||
CursorPtr newCursor, oldCursor;
|
CursorPtr newCursor, oldCursor;
|
||||||
REQUEST(xChangeActivePointerGrabReq);
|
REQUEST(xChangeActivePointerGrabReq);
|
||||||
TimeStamp time;
|
TimeStamp time;
|
||||||
|
@ -4831,7 +4831,11 @@ ProcChangeActivePointerGrab(ClientPtr client)
|
||||||
return BadCursor;
|
return BadCursor;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!grab && !SameClient(grab, client))
|
|
||||||
|
device = PickPointer(client);
|
||||||
|
grab = device->deviceGrab.grab;
|
||||||
|
|
||||||
|
if (!grab || !SameClient(grab, client))
|
||||||
{
|
{
|
||||||
/* no grab on ClientPointer, or some other client has a grab on our
|
/* no grab on ClientPointer, or some other client has a grab on our
|
||||||
* ClientPointer, let's check if we have a pointer grab on some other
|
* ClientPointer, let's check if we have a pointer grab on some other
|
||||||
|
|
Loading…
Reference in New Issue