xfree86: remove superflous assignments.
ActivateGrab and DeactivateGrab are set in AddInputDevice() already. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
4cd54d9ed9
commit
67ffbcc14c
|
@ -943,8 +943,6 @@ KdAddKeyboard (KdKeyboardInfo *ki)
|
||||||
return !Success;
|
return !Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
ki->dixdev->deviceGrab.ActivateGrab = ActivateKeyboardGrab;
|
|
||||||
ki->dixdev->deviceGrab.DeactivateGrab = DeactivateKeyboardGrab;
|
|
||||||
RegisterOtherDevice(ki->dixdev);
|
RegisterOtherDevice(ki->dixdev);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
@ -1014,8 +1012,6 @@ KdAddPointer (KdPointerInfo *pi)
|
||||||
return BadDevice;
|
return BadDevice;
|
||||||
}
|
}
|
||||||
|
|
||||||
pi->dixdev->deviceGrab.ActivateGrab = ActivatePointerGrab;
|
|
||||||
pi->dixdev->deviceGrab.DeactivateGrab = DeactivatePointerGrab;
|
|
||||||
RegisterOtherDevice(pi->dixdev);
|
RegisterOtherDevice(pi->dixdev);
|
||||||
|
|
||||||
for (prev = &kdPointers; *prev; prev = &(*prev)->next);
|
for (prev = &kdPointers; *prev; prev = &(*prev)->next);
|
||||||
|
|
|
@ -351,8 +351,6 @@ xf86ActivateDevice(LocalDevicePtr local)
|
||||||
dev->type = SLAVE;
|
dev->type = SLAVE;
|
||||||
dev->spriteInfo->spriteOwner = FALSE;
|
dev->spriteInfo->spriteOwner = FALSE;
|
||||||
|
|
||||||
dev->deviceGrab.ActivateGrab = ActivateKeyboardGrab;
|
|
||||||
dev->deviceGrab.DeactivateGrab = DeactivateKeyboardGrab;
|
|
||||||
dev->config_info = xf86SetStrOption(local->options, "config_info", NULL);
|
dev->config_info = xf86SetStrOption(local->options, "config_info", NULL);
|
||||||
|
|
||||||
RegisterOtherDevice(dev);
|
RegisterOtherDevice(dev);
|
||||||
|
|
Loading…
Reference in New Issue